This project is archived and is in readonly mode.

#5486 ✓committed
Mike Perham

Allow dynamic cache stores

Reported by Mike Perham | August 28th, 2010 @ 09:54 PM | in 3.0.2

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.

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 »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages