redis-lua icon indicating copy to clipboard operation
redis-lua copied to clipboard

how to set expire key:value for redis

Open alochym01 opened this issue 6 years ago • 1 comments

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

alochym01 avatar Apr 15 '18 01:04 alochym01

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

riskey95 avatar Jun 27 '18 01:06 riskey95