technoweenie / guillotine

URL shortening hobby kit
http://techno-weenie.net/guillotine/
MIT License
486 stars 54 forks source link

Redis adapter option to set a TTL to keys #19

Open bencolon opened 9 years ago

bencolon commented 9 years ago

I'm working on a project where short urls are periodically generated and have to expire after a given time. Redis key TTL is just perfect to manage this expiration time, so I've added an :expire option to pass to the Redis adapter to set a TTL to the Redis keys.