Documentation ¶
Index ¶
- Variables
- func Bytes(value interface{}) ([]byte, error)
- func MakeHashSlotKey(hashTag, id, environmentNamespace string) string
- func MakeKey(kind, id, environmentNamespace string) string
- func MakeKeyPrefix(kind, environmentNamespace string) string
- type Cache
- type Deleter
- type Getter
- type Lister
- type MultiGetCache
- type MultiGetDeleteCache
- type MultiGetter
- type Putter
- type TTLCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("cache: not found") ErrInvalidType = errors.New("cache: not expected type") )
Functions ¶
func MakeHashSlotKey ¶
MakeHashSlotKey creates a key to ensure that multiple keys are allocated in the same hash slot. https://redis.io/topics/cluster-spec#keys-hash-tags
func MakeKeyPrefix ¶
Types ¶
type Cache ¶
func NewRedisCache ¶
type MultiGetCache ¶
type MultiGetCache interface { Cache MultiGetter }
type MultiGetDeleteCache ¶
type MultiGetDeleteCache interface { MultiGetCache Deleter }
type MultiGetter ¶
Click to show internal directories.
Click to hide internal directories.