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.

Allow dynamic cache stores

#5486

ActiveSupport should allow dynamic cache store initialization just how database adapters work:

config.cache_store = :foo_store

If :foo_store is not recognized, AS should try to require the convention:

require 'active_support/cache/foo_store'

I'm working on a next gen memcached client, Dalli, and this would make Dalli a drop-in replacement for memcache-client but the user does need to require the store adapter currently:

require 'active_support/cache/dalli_store'
config.cache_store = :dalli_store

I will create a patch later this weekend.

Reported by Mike Perham · August 28th, 2010 @ 09:54 PM

State: committed
Milestone: 3.0.2
Assigned to: nobody
Importance: Low

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone cleared.
    • State changed from new to open
    • Importance changed from to Low

    August 28th, 2010 @ 10:21 PM

  2. Mike Perham
    Mike Perham

    Patch to auto-require the store if not initially found.

    August 28th, 2010 @ 10:48 PM

  3. Mike Perham
    Mike Perham

    No test included because I'm unclear how to test this cleanly. It does work as expected when applied to a Rails 3RC2 app as a monkeypatch.

    August 28th, 2010 @ 11:07 PM

  4. Repository
  5. Repository
  6. Jeremy Kemper