Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errNotFound
ErrNotFound is returned by cache.C APIs after NormalizeErr (not redis.Nil).
Functions ¶
func IsNotFound ¶ added in v1.22.7
IsNotFound reports normalized not-found errors from cache.C.
func IsNotFoundAny ¶ added in v1.22.8
IsNotFoundAny reports not-found for raw redis.Nil or normalized cache errors.
func NormalizeErr ¶ added in v1.22.7
NormalizeErr maps redis driver errors to cache-level errors.
Types ¶
type C ¶
type C interface {
Get(key string, value interface{}) (err error)
GetSkipLocal(key string, value interface{}) (err error)
GetProxy() *cache.Cache
Exists(key string) bool
Set(key string, value interface{}) (err error)
SetTTL(key string, value interface{}, ttl time.Duration) (err error)
Del(key string) error
}
Click to show internal directories.
Click to hide internal directories.