Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Support options passed to ActiveSupport::Cache :mem_cache_store

#14

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...

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

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • State changed from new to open
    • Assigned user set to josh
    • Title changed from [PATCH] make the new ActiveSupport::Cache :mem_cache_store accept options to Support options passed to ActiveSupport::Cache :mem_cache_store

    April 17th, 2008 @ 01:21 AM

  2. Repository
    Repository
    • State changed from open to resolved

    (from [9e1d506a8cfedef2fdd605e4cbf4bf53651ad214]) Support options passed to ActiveSupport::Cache :mem_cache_store [#14 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.com/rails/rails/co...

    April 17th, 2008 @ 06:59 PM

  3. josh
    josh

    Nice work, I'd consider this ticket for the "ideal" patch. Has a nice write up, simple implementation, tests, a diff patch, and a github fork. Great work, please continue this format :)

    April 17th, 2008 @ 07:02 PM