Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Add(key string, value interface{}, ttl time.Duration, returnChan chan *Item) error Pop(key string) (*Item, error) Get(key string) (*Item, error) // When a Item is deleted the go routine handling the removal is still // going on for n more seconds. Might need a kill signal to end it. Delete(key string) error }
Cache interface
Click to show internal directories.
Click to hide internal directories.