ccocchi/libmemcached_store — pull request #3 by ccocchi (2012-09-05 13:58:19+00:00)
Title: Remove ActiveSupport::Entry

ActiveSupport::Entry has 2 main goals : handle values expiration and compression. Both can be managed with memcached itself.

Expiration managed by default in memcached. For compression, we can set flags along with the data, so when we retrieve it, we just have to check for the flags to know if the value is compressed or not.
In consequence, we don't need this Entry wrapper though gaining a little memory overhead and wrapping/unwrapping time.

This PR also contains a benchmark with dalli, the future default gem included with Rails.