nrk/redis-lua

how to set expire key:value for redis

alochym01 opened this issue · 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

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