mperham/dalli — Issue #173: Dalli Cache Store should allow users to opt out of ActiveSupport::Cache::Entry
Author: NZKoz
Created: 2012-02-24 02:57:58+00:00
State: open

Rails 3.x unified the implementation and feature set of the various different cache stores. It did this by introducing `ActiveSupport::Cache::Entry` which it stores in the various stores. Those entries provide information on the ttl etc allowing things like the memory store to support memcached style features.

However for memcached stores this is pretty wasteful. The serialized Entry classes add about 108 bytes to every single item stored, causing increased cache usage, especially with small values being cached. When multiplied over 10,000s of items, that's a big number.

Ideally dalli would allow users to 'opt out' of this functionality to save the ram / cpu cycles.