persist
PERSIST
Remove expire time
Usage is persist key [type].
📍 type is one of string/list/set/zset/hash/stream.
type was added from ent811. Please use it.
Example
| Command> | set key value |
| Result> | 1 |
| Command> | expire key 5 string |
| Result> | 1 |
| Command> | ttl key string |
| Result> | 3 |
| Command> | persist key string |
| Result> | 1 |
| Command> | ttl key string |
| Result> | -1 |
| Command> | get key |
| Result> | value |
View animation
Syntax
PERSIST key [type]
- Available since version 2.2.0.
- Time complexity is O(1).
- From 6.0, Event Notification is generated -> 'persist'
- ent811 type added.