Documentation ¶
Index ¶
- func NewRedisCache(config *internal.CacheConfig) internal.Cacher
- type RCache
- func (c *RCache) ClearAll() (err error)
- func (c *RCache) Decrement(key string) (err error)
- func (c *RCache) Delete(key string) (err error)
- func (c *RCache) Get(key string) (result interface{}, err error)
- func (c *RCache) GetJson(key string, val interface{}) error
- func (c *RCache) Increment(key string) (err error)
- func (c *RCache) Put(key string, val interface{}, timeout time.Duration) (err error)
- func (c *RCache) PutJson(key string, val interface{}, timeout time.Duration) error
- func (c *RCache) Touch(key string, timeout time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
func NewRedisCache(config *internal.CacheConfig) internal.Cacher
Types ¶
type RCache ¶
type RCache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.