Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set expiry? #71

Open
bansalnaman15 opened this issue Dec 18, 2021 · 1 comment
Open

How do I set expiry? #71

bansalnaman15 opened this issue Dec 18, 2021 · 1 comment
Labels

Comments

@bansalnaman15
Copy link

bansalnaman15 commented Dec 18, 2021

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

rj.jsonset('key1', Path.rootPath(), obj)
@gkorland
Copy link
Contributor

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

client.expire(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants