bwlewis / rredis

R client for Redis
http://illposed.net/
93 stars 25 forks source link

redisTTL returning -2 #25

Closed telenskyt closed 9 years ago

telenskyt commented 10 years ago

redisTTL() function is returning undocumented value of -2 for a non-existent key. It should probably return -1 or the documentation should contain the description of another return value of -2.

bwlewis commented 9 years ago

The doc should be fixed in commit https://github.com/bwlewis/rredis/commit/e13e34ff6fbbeca6b5fcf057dd66c6d30749e765