This project is archived and is in readonly mode.

#14 ✓ resolved
Jonathan Weiss

Support options passed to ActiveSupport::Cache :mem_cache_store

Reported by Jonathan Weiss | April 16th, 2008 @ 09:43 PM

The inclusion of Memcache-Client to ActiveSupport::Cache made it easier to use but also removed the flexibility to supply custom options.

This patch(+unit tests) fixes this and allows you to supply extra options:

ActiveSupport::Cache.lookup_store :mem_cache_store, "localhost"

ActiveSupport::Cache.lookup_store :mem_cache_store, "localhost", '192.168.1.1', :namespace => 'foo'

or

config.action_controller.fragment_cache_store = :mem_cache_store, 'localhost', {:compression => true, :debug => true, :namespace =>'foo'}

See http://github.com/jweiss/rails/c...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

People watching this ticket

Attachments

Referenced by

Pages