ems

package
v0.0.0-...-d93779f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ems provides an expiring memory store

Package ems provides an expiring memory store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

func NewElement

func NewElement(value string) *Element

func NewElementWithExpiration

func NewElementWithExpiration(value string, expiresIn int64) *Element

func (*Element) IsExpired

func (e *Element) IsExpired() bool

type ExpiringMemoryStore

type ExpiringMemoryStore struct {
	// contains filtered or unexported fields
}

func NewExpiringMemoryStore

func NewExpiringMemoryStore() *ExpiringMemoryStore

func (*ExpiringMemoryStore) Clear

func (store *ExpiringMemoryStore) Clear()

func (*ExpiringMemoryStore) CountActive

func (store *ExpiringMemoryStore) CountActive() int

func (*ExpiringMemoryStore) CountAll

func (store *ExpiringMemoryStore) CountAll() int

func (*ExpiringMemoryStore) Exists

func (store *ExpiringMemoryStore) Exists(name string) bool

func (*ExpiringMemoryStore) Read

func (store *ExpiringMemoryStore) Read(name string) (string, error)

func (*ExpiringMemoryStore) Remove

func (store *ExpiringMemoryStore) Remove(name string)

func (*ExpiringMemoryStore) Write

func (store *ExpiringMemoryStore) Write(name string, value string)

func (*ExpiringMemoryStore) WriteWithExpiration

func (store *ExpiringMemoryStore) WriteWithExpiration(name string, value string, expiresIn int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL