Class: Redis::Client
- Inherits:
-
Object
- Object
- Redis::Client
- Defined in:
- lib/redis/client_helper.rb
Class Method Summary collapse
Class Method Details
.default ⇒ Object
3 4 5 |
# File 'lib/redis/client_helper.rb', line 3 def self.default @@default_connection ||= ::Redis.new end |
.default=(connection) ⇒ Object
6 7 8 |
# File 'lib/redis/client_helper.rb', line 6 def self.default=(connection) @@default_connection = connection end |