Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { GetAndLoad(key string, value interface{}, loader func() (interface{}, error)) error Get(key string, value interface{}) error Set(key string, value interface{}, expiration *time.Duration) error Delete(key string) error }
Cache can GetAndLoad, Get, Set, and Delete items by key
Directories ¶
Path | Synopsis |
---|---|
Package mock_cache is a generated GoMock package.
|
Package mock_cache is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.