This project is archived and is in readonly mode.
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
-
Jeremy Kemper August 28th, 2010 @ 10:21 PM
- Milestone cleared.
- State changed from new to open
- Importance changed from to Low
-
Mike Perham August 28th, 2010 @ 11:07 PM
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.
-
Repository August 28th, 2010 @ 11:52 PM
- State changed from open to committed
(from [90d4a192854ca7eee0d4bd56d6008ee5b457d2a0]) Support pluggable cache stores.
[#5486 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/90d4a192854ca7eee0d4bd56d6008e... -
Repository August 28th, 2010 @ 11:52 PM
(from [390d285ef67e1868aa0af6e86fa1cd59c32e926d]) Support pluggable cache stores.
[#5486 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/390d285ef67e1868aa0af6e86fa1cd...
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
- 5486 Allow dynamic cache stores [#5486 state:committed]
- 5486 Allow dynamic cache stores [#5486 state:committed]