Lines Matching defs:Cache
52 type Cache struct { struct
53 p *redis.Pool // redis connection pool
54 conninfo string
55 dbNum int
56 key string
57 password string
58 maxIdle int
61 timeout time.Duration
70 func (rc *Cache) do(commandName string, args ...interface{}) (reply interface{}, err error) {
82 func (rc *Cache) associate(originKey interface{}) string {
87 func (rc *Cache) Get(key string) interface{} {
95 func (rc *Cache) GetMulti(keys []string) []interface{} {
110 func (rc *Cache) Put(key string, val interface{}, timeout time.Duration) error {
116 func (rc *Cache) Delete(key string) error {
122 func (rc *Cache) IsExist(key string) bool {
131 func (rc *Cache) Incr(key string) error {
137 func (rc *Cache) Decr(key string) error {
143 func (rc *Cache) ClearAll() error {
159 func (rc *Cache) Scan(pattern string) (keys []string, err error) {
191 func (rc *Cache) StartAndGC(config string) error {
242 func (rc *Cache) connectInit() {