Documentation ¶ Index ¶ Variables type InMemory func NewInMemory() *InMemory func (c *InMemory) Clear() error func (c *InMemory) Delete(key string) error func (c *InMemory) Get(key string) (interface{}, error) func (c *InMemory) Keys() []string func (c *InMemory) Set(key string, value interface{}, ttl time.Duration) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrKeyNotFound = errors.New("key not found") ) Functions ¶ This section is empty. Types ¶ type InMemory ¶ type InMemory struct { // contains filtered or unexported fields } func NewInMemory ¶ func NewInMemory() *InMemory func (*InMemory) Clear ¶ func (c *InMemory) Clear() error func (*InMemory) Delete ¶ func (c *InMemory) Delete(key string) error func (*InMemory) Get ¶ func (c *InMemory) Get(key string) (interface{}, error) func (*InMemory) Keys ¶ func (c *InMemory) Keys() []string func (*InMemory) Set ¶ func (c *InMemory) Set(key string, value interface{}, ttl time.Duration) error Source Files ¶ View all Source files errors.go memory.go Click to show internal directories. Click to hide internal directories.