Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

TTL (time-to-live) for expiring objects #160

Open
christiansmith opened this issue Aug 14, 2015 · 2 comments
Open

TTL (time-to-live) for expiring objects #160

christiansmith opened this issue Aug 14, 2015 · 2 comments

Comments

@christiansmith
Copy link
Member

Some objects stored in the database should have a TTL associated with them. For example, access tokens, authorization codes, etc.

@adalinesimonian adalinesimonian changed the title TTL for expiring objects TTL (time-to-live) for expiring objects Aug 15, 2015
@adalinesimonian
Copy link
Member

We could check at boot-time for expired objects that need to be removed in the database. Then, as the server is running, when objects with TTLs are created, they could be thrown in a queue for deletion (#129).

@adalinesimonian
Copy link
Member

In #171, we're using keys instead of hashes, and so we're able to take advantage of Redis' EXPIREAT command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants