Module: RedisCacheable::Connectable

Extended by:
ActiveSupport::Concern
Included in:
RedisCacheable
Defined in:
lib/redis_cacheable/connectable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#redis(&blk) ⇒ Object

Raises:

  • (ArgumentError)


55
56
57
58
59
# File 'lib/redis_cacheable/connectable.rb', line 55

def redis(&blk)
  raise ArgumentError.new("Need block") unless blk

  self.class.redis(&blk)
end