lib/cacheflow.rb in cacheflow-0.2.1 vs lib/cacheflow.rb in cacheflow-0.3.0
- old
+ new
@@ -5,10 +5,10 @@
require "cacheflow/version"
module Cacheflow
def self.activate
require "cacheflow/memcached" if defined?(Dalli)
- require "cacheflow/redis" if defined?(Redis)
+ require "cacheflow/redis" if defined?(Redis) || defined?(RedisClient)
end
def self.silenced?
Thread.current[:cacheflow_silenced]
end