Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Lock key Lock(key string) // Unlock key Unlock(key string) // Get value by key. Returns data.ErrNoMatch, if has no key. Get(key string, dst interface{}) error // Set value with key and expire time. Set(key string, val interface{}, timeout time.Duration) error // Delete cached value by key. Delete(key string) error // Assert depended key Assert(key string, dependencies map[string]string) error // Invalidate dependencies Invalidate(key, val string) error }
Click to show internal directories.
Click to hide internal directories.