class Fett::RedisConnection

Constants

DATABASE
HOST
PASSWORD
PORT

Public Class Methods

client() click to toggle source
# File lib/fett/redis_connection.rb, line 16
def self.client
  @@client
end
initialize() click to toggle source
# File lib/fett/redis_connection.rb, line 10
def self.initialize
  params = { host: HOST, port: PORT, db: DATABASE }
  params.merge!(password: PASSWORD) unless PASSWORD.empty?
  @@client ||= ::Redis.new(params)
end