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 to set expire key:value for redis #57

Open
alochym01 opened this issue Apr 15, 2018 · 1 comment
Open

how to set expire key:value for redis #57

alochym01 opened this issue Apr 15, 2018 · 1 comment

Comments

@alochym01
Copy link

i read the readme file but there is no docs for expire time of key
client:set('foo', 'bar')

how to set expire time for key "foo" about 3 minutes

thank you

@riskey95
Copy link

use client:setex('foo', 3*60, 'bar')

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

No branches or pull requests

2 participants