Documentation ¶
Index ¶
- Variables
- type RedisCache
- func (r *RedisCache) Decr(key string) (int64, error)
- func (r *RedisCache) Delete(key string) (err error)
- func (r *RedisCache) Flush() (err error)
- func (r *RedisCache) Forever(key, val string) (err error)
- func (r *RedisCache) Get(key string) string
- func (r *RedisCache) Incr(key string) (int64, error)
- func (r *RedisCache) MGet(keys []string) []string
- func (r *RedisCache) MSet(items map[string]string, timeout int64) (err error)
- func (r *RedisCache) Set(key, val string, timeout int64) (err error)
- func (r *RedisCache) StartAndGC(opt tagcache.Options) error
- func (r *RedisCache) Touch(key string, expire int64) (err error)
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DefualtPrefix = "tc"
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func (*RedisCache) Decr ¶
func (r *RedisCache) Decr(key string) (int64, error)
Decr decreases cached int-type value by given key as a counter.
func (*RedisCache) Delete ¶
func (r *RedisCache) Delete(key string) (err error)
Delete deletes cached value by given key.
func (*RedisCache) Forever ¶
func (r *RedisCache) Forever(key, val string) (err error)
func (*RedisCache) Get ¶
func (r *RedisCache) Get(key string) string
func (*RedisCache) Incr ¶
func (r *RedisCache) Incr(key string) (int64, error)
Incr increases cached int-type value by given key as a counter.
func (*RedisCache) MGet ¶
func (r *RedisCache) MGet(keys []string) []string
func (*RedisCache) MSet ¶
func (r *RedisCache) MSet(items map[string]string, timeout int64) (err error)
func (*RedisCache) StartAndGC ¶
func (r *RedisCache) StartAndGC(opt tagcache.Options) error
StartAndGC starts GC routine based on config string settings.
Click to show internal directories.
Click to hide internal directories.