1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-25 00:01:00 +03:00

chore: add example how to delete keys without a ttl

This commit is contained in:
Vladimir Mihailenco
2021-11-19 17:03:42 +02:00
parent 47ac23e055
commit 9b48b5e45f
6 changed files with 272 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
# Delete keys without a ttl
This example demonstrates how to use `SCAN` and pipelines to efficiently delete keys without a TTL.
To run this example:
```shell
go run .
```
See [documentation](https://redis.uptrace.dev/guide/get-all-keys.html) for more details.