Documentation
¶
Index ¶
- func NewGoCache() cache.ICache
- func NewRedisCache(ds datasource.RedisDataSource) cache.ICache
- type GoCache
- type RedisCache
- func (r *RedisCache) Delete(key cache.CacheKey) error
- func (r *RedisCache) Get(key cache.CacheKey) (string, bool)
- func (r *RedisCache) ImplName() scene.ImplName
- func (r *RedisCache) Set(key cache.CacheKey, value string, expiration time.Duration) error
- func (r *RedisCache) Setup() error
- func (r *RedisCache) Status() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoCache ¶ added in v0.2.8
func NewRedisCache ¶
func NewRedisCache(ds datasource.RedisDataSource) cache.ICache
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func (*RedisCache) ImplName ¶ added in v0.2.8
func (r *RedisCache) ImplName() scene.ImplName
func (*RedisCache) Setup ¶
func (r *RedisCache) Setup() error
func (*RedisCache) Status ¶
func (r *RedisCache) Status() error
Click to show internal directories.
Click to hide internal directories.