Module: RedisCacheable

Extended by:
ActiveSupport::Concern
Includes:
Connectable
Included in:
ActiveRecord
Defined in:
lib/redis_cacheable.rb,
lib/redis_cacheable/version.rb,
lib/redis_cacheable/connectable.rb,
lib/redis_cacheable/active_record.rb,
lib/redis_cacheable/configuration.rb

Overview

Specialized for ActiveRecord

Defined Under Namespace

Modules: ActiveRecord, ClassMethods, Connectable Classes: Configuration

Constant Summary collapse

VERSION =
"0.2.0"

Instance Method Summary collapse

Methods included from Connectable

#redis

Instance Method Details

#cache_to_redisObject



83
84
85
86
87
# File 'lib/redis_cacheable.rb', line 83

def cache_to_redis
  redis do |conn|
    conn.set(redis_cache_key, MultiJson.dump(redis_cache_data))
  end
end