class Stockpile

Public Class Methods

inject_redis!(mod, options = {}) click to toggle source

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!.

# File lib/stockpile/redis.rb, line 203
def self.inject_redis!(mod, options = {})
  inject!(mod, options.merge(default_manager: Stockpile::Redis))
end