Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("cache: key not found") ErrCacheMarshal = errors.New("cache: failed to marshal value") ErrCacheUnmarshal = errors.New("cache: failed to unmarshal value") ErrCacheGet = errors.New("cache: failed to get") ErrCacheSet = errors.New("cache: failed to set") ErrCacheTTL = errors.New("cache: failed to set TTL") ErrCacheDelete = errors.New("cache: failed to delete") ErrCacheInvalidate = errors.New("cache: failed to invalidate") )
View Source
var ErrCacheInvalidKeyType = errors.New("cache: invalid key type")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type IntKeyEncoder ¶
type IntKeyEncoder struct{}
func NewIntKeyEncoder ¶
func NewIntKeyEncoder() *IntKeyEncoder
type KeyEncoder ¶
type StringKeyEncoder ¶
type StringKeyEncoder struct{}
func NewStringKeyEncoder ¶
func NewStringKeyEncoder() *StringKeyEncoder
type UUIDKeyEncoder ¶
type UUIDKeyEncoder struct{}
func NewUUIDKeyEncoder ¶
func NewUUIDKeyEncoder() *UUIDKeyEncoder
Click to show internal directories.
Click to hide internal directories.