redis/example/del-keys-without-ttl
ofekshenawa b5a9e5d2c6
Bump go-redis version to 9.5.0 (#2905)
* Bump go-redis version to 9.4.1

* Bump go-redis version to 9.5.0
2024-02-18 19:16:42 +02:00
..
README.md chore: add example how to delete keys without a ttl 2021-11-19 17:05:07 +02:00
go.mod Bump go-redis version to 9.5.0 (#2905) 2024-02-18 19:16:42 +02:00
go.sum chore: update go mod, Upgrade golang.org/x/net version to 0.7.0 (#2476) 2023-03-06 19:42:42 +08:00
main.go Format code and fix go vet (#2696) 2023-09-20 14:03:44 +03:00

README.md

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:

go run .

See documentation for more details.