Documentation ¶
Index ¶
- Variables
- func Forget(key string) error
- func Get(key string, ret any) (bool, error)
- func Has(key string) (bool, error)
- func HasMulti(keys ...string) (map[string]bool, error)
- func Init(conf []Config, defaultAdapter string) error
- func Remember(key string, value func() (any, error), ttl int64, ret any) (bool, error)
- func Set(key string, value any, ttl int64) error
- type Cache
- type Config
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidRedisAdapterParams = errors.New("invalid redis adapter params") ErrInvalidMemcacheAdapterParams = errors.New("invalid memcache adapter params") ErrInvalidLruAdapterParams = errors.New("invalid lru adapter params") ErrInvalidDefaultName = errors.New("invalid default name") ErrAdapterUndefined = errors.New("undefined adapter") ErrInstanceUninitialized = errors.New("uninitialized instance") )
Functions ¶
Types ¶
type Cache ¶
Click to show internal directories.
Click to hide internal directories.