redisjson-py
redisjson-py copied to clipboard
How do I set expiry?
obj = {
"id": 1,
"uname": "abc"
}
rj.jsonset('key1', Path.rootPath(), obj)
EXPIRE is the commanf you're looking for see: https://redis.io/commands/expire.
client.expire(...)