-
Notifications
You must be signed in to change notification settings - Fork 4
TTL doesn't seems to work? #1
Copy link
Copy link
Open
Description
Hi,
I have test the tool, and it is a great software!
However, I not sure if the TTL effect any key under redis.
For example
curl -X PUT "http://localhost8101/mywebapp/create/username?ip=1.2.3.4&ttl=60"
provide the expected results:
{"token":"93wSlU3fsD3ndcLpBWXYBmMfN******************************************pd1"}
But when going to redis-cli I can see the key exist even after 60 sec.
Check the TTL of the key provide
(integer) -1
which mean "The command returns -1 if the key exists but has no associated expire."
see more here http://redis.io/commands/ttl
Is it a bug?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels