nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
733 stars 239 forks source link

how to set expire key:value for redis #57

Open alochym01 opened 6 years ago

alochym01 commented 6 years ago

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 commented 6 years ago

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