Class: Wayfarer::Redis::Pool

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Singleton
Defined in:
lib/wayfarer/redis/pool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePool

Returns a new instance of Pool.



11
12
13
14
15
# File 'lib/wayfarer/redis/pool.rb', line 11

def initialize
  @pool = ConnectionPool.new do
    Wayfarer.config.redis.factory.call(Wayfarer.config.redis)
  end
end

Instance Attribute Details

#poolObject (readonly)

Returns the value of attribute pool.



9
10
11
# File 'lib/wayfarer/redis/pool.rb', line 9

def pool
  @pool
end