Skip to content

Always set TTL - #5

Merged
radar merged 2 commits into
redis-store:masterfrom
mezis:always-set-ttl
Sep 2, 2015
Merged

Always set TTL#5
radar merged 2 commits into
redis-store:masterfrom
mezis:always-set-ttl

Conversation

@mezis

@mezis mezis commented Aug 27, 2015

Copy link
Copy Markdown
Contributor

Not all Redis instances are configured with maxmemory-policy = volatile-lru or allkeys.
Some have volatile-ttl (typical for mixed cache/persistent usage) or even noeviction.

For compatibility, a TTL can always be set, defaulting to a long duration (here, 1 year).

@radar

radar commented Aug 31, 2015

Copy link
Copy Markdown
Member

Please put the constant in a redis_cache file and not in the version file. Version file should only have the version in it.

@mezis

mezis commented Aug 31, 2015

Copy link
Copy Markdown
Contributor Author

@radar, done. Does this work for you?
(I've also rebased and resolved the conflict with #4)

@radar

radar commented Sep 2, 2015

Copy link
Copy Markdown
Member

Yes, that's great now. Thank you :)

radar added a commit that referenced this pull request Sep 2, 2015
@radar
radar merged commit e76a151 into redis-store:master Sep 2, 2015
@tubbo tubbo mentioned this pull request Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants