Documentation ¶
Index ¶
- type Cache
- func (rc *Cache) ClearAll() error
- func (rc *Cache) ConnectInit()
- func (rc *Cache) Decr(key string) error
- func (rc *Cache) Delete(key string) error
- func (rc *Cache) EvalSha(sha string, data ...interface{}) (interface{}, error)
- func (rc *Cache) ExistsScript(sha string) (error, int64)
- func (rc *Cache) Expire(key string, timeout time.Duration) error
- func (rc *Cache) Get(key string) string
- func (rc *Cache) GetMulti(keys []string) []interface{}
- func (rc *Cache) HmGet(key, v string) string
- func (rc *Cache) HmGetAll(key string) ([]interface{}, error)
- func (rc *Cache) HmSet(key string, v interface{}) error
- func (rc *Cache) Incr(key string) error
- func (rc *Cache) IsExist(key string) bool
- func (rc *Cache) Load() error
- func (rc *Cache) Lock(key string, timeout time.Duration) (bool, error)
- func (rc *Cache) Put(key string, val interface{}, timeout time.Duration) error
- func (rc *Cache) Scan(pattern string) (keys []string, err error)
- func (rc *Cache) Script(sha string) (error, string)
- func (rc *Cache) Set(key string, val interface{}) error
- func (rc *Cache) Ttl(key string) int64
- func (rc *Cache) UnLock(key string) 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) ConnectInit ¶
func (rc *Cache) ConnectInit()
Click to show internal directories.
Click to hide internal directories.