MCPcopy
hub / github.com/redis/go-redis / NewKeyChecker

Function NewKeyChecker

example/del-keys-without-ttl/main.go:52–60  ·  view source on GitHub ↗
(rdb *redis.Client, batchSize int)

Source from the content-addressed store, hash-verified

50}
51
52func NewKeyChecker(rdb *redis.Client, batchSize int) *KeyChecker {
53 return &KeyChecker{
54 rdb: rdb,
55 batchSize: batchSize,
56 ch: make(chan string, batchSize),
57 delCh: make(chan string, batchSize),
58 logger: zap.L(),
59 }
60}
61
62func (c *KeyChecker) Add(key string) {
63 c.ch <- key

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected