koajs / koa-redis

Redis storage for Koa session middleware/cache with Sentinel and Cluster support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs for setting TTL?

atomgomba opened this issue · comments

I saw there's a TTL argument for the set method, but it's not clear to me how to use it and it's not documented. I'm a noob just creating my first app using node.

koa-redis must used with koa-generic-session, so you can find TTL option here