Class: RedisConnector

Inherits:
Object
  • Object
show all
Defined in:
lib/MINT-core/connector/redis_connector.rb

Class Method Summary collapse

Class Method Details

.redisObject



3
4
5
6
# File 'lib/MINT-core/connector/redis_connector.rb', line 3

def self.redis

  @@redis ||= EventMachine::Hiredis.connect
end

.resetObject



12
13
14
# File 'lib/MINT-core/connector/redis_connector.rb', line 12

def self.reset
  @@redis =nil
end

.sync_redisObject



8
9
10
# File 'lib/MINT-core/connector/redis_connector.rb', line 8

def self.sync_redis
  @@sync_redis ||= Redis.new
end