Class: Stockpile

Inherits:
Object
  • Object
show all
Defined in:
lib/stockpile/redis.rb

Defined Under Namespace

Classes: Redis

Class Method Summary collapse

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, options = {})
  inject!(mod, options.merge(default_manager: Stockpile::Redis))
end