redisjson-py icon indicating copy to clipboard operation
redisjson-py copied to clipboard

How do I set expiry?

Open bansalnaman15 opened this issue 3 years ago • 1 comments

obj = {
    "id": 1,
    "uname": "abc"
}

rj.jsonset('key1', Path.rootPath(), obj)

bansalnaman15 avatar Dec 18 '21 13:12 bansalnaman15

EXPIRE is the commanf you're looking for see: https://redis.io/commands/expire.

client.expire(...)

gkorland avatar Dec 18 '21 19:12 gkorland