MCPcopy
hub / github.com/eddycjy/go-gin-example / Delete

Function Delete

pkg/gredis/redis.go:92–97  ·  view source on GitHub ↗

Delete delete a kye

(key string)

Source from the content-addressed store, hash-verified

90
91// Delete delete a kye
92func Delete(key string) (bool, error) {
93 conn := RedisConn.Get()
94 defer conn.Close()
95
96 return redis.Bool(conn.Do("DEL", key))
97}
98
99// LikeDeletes batch delete
100func LikeDeletes(key string) error {

Callers 1

LikeDeletesFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected