Exists check item exist in redis cache.
(key string)
| 24 | |
| 25 | // Exists check item exist in redis cache. |
| 26 | func (ca *RedisCache) Exists(key string) (bool, error) { |
| 27 | redisClient := redisutil.GetDefaultRedisClient(ca.serverURL) |
| 28 | exists, err := redisClient.Exists(key) |
| 29 | return exists, err |
| 30 | } |
| 31 | |
| 32 | // Incr increase int64 counter in redis cache. |
| 33 | func (ca *RedisCache) Incr(key string) (int64, error) { |