MCPcopy Create free account
hub / github.com/devfeel/dotweb / Exists

Method Exists

cache/redis/cache_redis.go:26–30  ·  view source on GitHub ↗

Exists check item exist in redis cache.

(key string)

Source from the content-addressed store, hash-verified

24
25// Exists check item exist in redis cache.
26func (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.
33func (ca *RedisCache) Incr(key string) (int64, error) {

Callers

nothing calls this directly

Calls 1

ExistsMethod · 0.65

Tested by

no test coverage detected