From: Xavier Noria <f...@hashref.com>
Date: Thu, 20 Sep 2012 17:39:29 +0200
Local: Thurs, Sep 20 2012 11:39 am
Subject: getting rid of AS::Cache::Entry in the memcached store
As you probably know, the builtin memcached store wraps values in instances
In addition to the cached value, these entries store the creation
Rails 4 uses Dalli for the builtin memcached cache store, and Dalli
The creation and TTL values are there because albeit memcached handles
If you read the entry in that 5 minute window, expiration is handled by AS,
That manual management of expiration makes sense if the store does not
:race_condition_ttl is an optional TTL you may pass in a fetch call that
1) If we read the entry and according to the user it has expired, then
2) When the value is computed, store it with the normal TTL (+ 5 minutes),
This feature was introduced as a way to avoid the dog pile effect in heavy
Memcached does not give you the TTL of a key, therefore we need this
Question is, how many people need this? I wonder if the trade-off justifies
So, the question is, do you guys use this option? Thoughts?
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||