Documentation ¶
Overview ¶
Package cache includes error and interface for cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Get a value associated with given key in cache. Get(key string) ([]byte, error) // SetWithExpiry add a key-value pair with expiry in cache. Expiry in duration second not timestamp. SetWithExpiry(key string, value []byte, seconds int64) error // Close returns the client after use. Close() error }
Client of cache.
Click to show internal directories.
Click to hide internal directories.