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 Counter
- type Deleter
- type Expirer
- type Getter
- type Lister
- type MultiGetCache
- type MultiGetDeleteCountCache
- type MultiGetter
- type PFGetter
- type PFMerger
- type PipeLiner
- type Putter
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 MultiGetCache ¶
type MultiGetCache interface { Cache MultiGetter }
type MultiGetDeleteCountCache ¶ added in v0.2.0
type MultiGetter ¶
type PipeLiner ¶ added in v0.2.0
type PipeLiner interface {
Pipeline() redis.PipeClient
}
Click to show internal directories.
Click to hide internal directories.