hiddenid01 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TTL -1 or 0 not working as expected #431

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.setex key 0 'hello'
2.setex key -1 'hello'

What is the expected output? What do you see instead?
OK

What version of the product are you using? On what operating system?
2.0.0!, FreeBSD

Please provide any additional information below.

would be nice if the TTL can be handled like memcache -1 / 0 for unlimited TTL 
(no expire) and only consider values > 0

Original issue reported on code.google.com by nbari%da...@gtempaccount.com on 7 Jan 2011 at 12:27