Dudemullet / ctq-redis-module

A cancellable timeout queue for Redis
4 stars 0 forks source link

Refresh TTL to original value #8

Open Dudemullet opened 5 years ago

Dudemullet commented 5 years ago

new command

ctq.reset key key should store the TTL set on it and if this command is ever called on it, just reset TTL to that value.

the ctq:store namespace is already storing a Hashmap at the key so we could add a new key:value that has ttl:<value>.

If a key's TTL is ever changed, the new value should be stored in the Hashmap