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

Method Del

framework/redis/redisutil.go:130–133  ·  view source on GitHub ↗

Del deletes specified key

(key string)

Source from the content-addressed store, hash-verified

128
129// Del deletes specified key
130func (rc *RedisClient) Del(key string) (int64, error) {
131 ctx := context.Background()
132 return rc.client.Del(ctx, key).Result()
133}
134
135// INCR atomically increment the value by 1 specified by key
136func (rc *RedisClient) INCR(key string) (int, error) {

Callers 14

WriteHeaderMethod · 0.80
DeleteMethod · 0.80
TestRedisClient_SetFunction · 0.80
TestRedisClient_DelFunction · 0.80
TestRedisClient_ExistsFunction · 0.80
TestRedisClient_INCRFunction · 0.80
TestRedisClient_DECRFunction · 0.80
TestRedisClient_ExpireFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestRedisClient_SetFunction · 0.64
TestRedisClient_DelFunction · 0.64
TestRedisClient_ExistsFunction · 0.64
TestRedisClient_INCRFunction · 0.64
TestRedisClient_DECRFunction · 0.64
TestRedisClient_ExpireFunction · 0.64