Class: RedisConnector
- Inherits:
-
Object
- Object
- RedisConnector
- Defined in:
- lib/MINT-core/connector/redis_connector.rb
Class Method Summary collapse
Class Method Details
.redis ⇒ Object
3 4 5 6 |
# File 'lib/MINT-core/connector/redis_connector.rb', line 3 def self.redis @@redis ||= EventMachine::Hiredis.connect end |
.reset ⇒ Object
12 13 14 |
# File 'lib/MINT-core/connector/redis_connector.rb', line 12 def self.reset @@redis =nil end |
.sync_redis ⇒ Object
8 9 10 |
# File 'lib/MINT-core/connector/redis_connector.rb', line 8 def self.sync_redis @@sync_redis ||= Redis.new end |