Class: Stockpile
- Inherits:
-
Object
- Object
- Stockpile
- Defined in:
- lib/stockpile/redis.rb
Defined Under Namespace
Classes: Redis
Class Method Summary collapse
-
.inject_redis!(mod, options = {}) ⇒ Object
Enables module or class
mod
to contain a Stockpile instance that defaults the createdcache
method to using Stockpile::Redis as the key-value store connection manager.
Class Method Details
.inject_redis!(mod, options = {}) ⇒ Object
Enables module or class mod
to contain a Stockpile instance that defaults the created cache
method to using Stockpile::Redis as the key-value store connection manager.
See Stockpile.inject!
.
192 193 194 |
# File 'lib/stockpile/redis.rb', line 192 def self.inject_redis!(mod, = {}) inject!(mod, .merge(default_manager: Stockpile::Redis)) end |