Skip to content

Commit 6cbb344

Browse files
authored
Concurrent buffer Redis, remove sets when they are empty (#176)
1 parent 38d6cf3 commit 6cbb344

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

concurrent_buffer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func (c *ConcurrentBufferRedis) Add(ctx context.Context, key string) (int64, err
151151
Score: float64(now.UnixNano()),
152152
Member: key,
153153
})
154+
pipeliner.Expire(ctx, c.key, c.ttl)
154155
countCmd = pipeliner.ZCard(ctx, c.key)
155156

156157
return nil

0 commit comments

Comments
 (0)