Module: Redis::ClientHelper::ClassMethods
- Defined in:
- lib/redis/client_helper.rb
Instance Method Summary collapse
Instance Method Details
#redis ⇒ Object
24 25 26 27 28 29 |
# File 'lib/redis/client_helper.rb', line 24 def redis unless self.class_variable_defined?(:'@@redis') self.class_variable_set(:'@@redis', ::Redis::Client.default) end self.class_variable_get(:'@@redis') end |
#redis=(connection) ⇒ Object
30 31 32 |
# File 'lib/redis/client_helper.rb', line 30 def redis=(connection) self.class_variable_set(:'@@redis', connection) end |