Documentation
¶
Index ¶
- type Cache
- func (c *Cache) ClearAll()
- func (c *Cache) Close()
- func (c *Cache) Del(key string) error
- func (c *Cache) DelMulti(keys []string) error
- func (c *Cache) Get(key string) interface{}
- func (c *Cache) GetBool(key string) (v bool)
- func (c *Cache) GetInt(key string) (v int, ok bool)
- func (c *Cache) GetInt64(key string) (v int64, ok bool)
- func (c *Cache) GetMulti(keys []string) map[string]interface{}
- func (c *Cache) GetString(key string) (v string, ok bool)
- func (c *Cache) Has(key string) bool
- func (c *Cache) RegisterStoreFile(dir string) *Cache
- func (c *Cache) RegisterStoreMemory(size int) *Cache
- func (c *Cache) RegisterStoreRedis(addr, pwd string, dbNum int) *Cache
- func (c *Cache) RegisterStoreRedisWithClient(rc *utilRedis.RedisClient) *Cache
- func (c *Cache) Set(key string, val interface{}, ttl ...time.Duration) error
- func (c *Cache) SetExpire(ttl time.Duration) *Cache
- func (c *Cache) SetMulti(mv map[string]interface{}, ttl ...time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) RegisterStoreFile ¶
func (*Cache) RegisterStoreMemory ¶
func (*Cache) RegisterStoreRedis ¶
func (*Cache) RegisterStoreRedisWithClient ¶
func (c *Cache) RegisterStoreRedisWithClient(rc *utilRedis.RedisClient) *Cache
Click to show internal directories.
Click to hide internal directories.