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
Defined Under Namespace
Modules: ActiveRecord, ClassMethods, Connectable Classes: Configuration
Constant Summary collapse
- VERSION =
"0.1.1"
Instance Method Summary collapse
Methods included from Connectable
Instance Method Details
#cache_to_redis ⇒ Object
48 49 50 51 52 |
# File 'lib/redis_cacheable.rb', line 48 def cache_to_redis redis do |conn| conn.set(redis_cache_key, MultiJson.dump(redis_cache_data)) end end |