Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheNoHn = errors.New("No cache handler initialized")
ErrCacheNoHn is the error encountered when there is no valid handler initialized and still calling the cache methods
View Source
var ErrCacheNoHost = errors.New("No valid host address(es) provided")
ErrCacheNoHost is the error encountered when the provided Redis/Hosts are not available
View Source
var ErrNotFound = errors.New("Key does not exist")
ErrNotFound is the error encountered when key not found in the cache
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Set(key string, value interface{}, expiry time.Duration) error Get(key string, result interface{}) error // HSet(string, string, interface{}, time.Duration, bool) error // HGet(string, string, interface{}) (error) // Delete(...string) error // HDelete(string, ...string) error Ping() error }
Service interface should have all the required methods This interface is implemented to remove isCluster check for every call
Click to show internal directories.
Click to hide internal directories.