Skip to content

TTL doesn't seems to work? #1

@sassyn

Description

@sassyn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions