Class: Wayfarer::Middleware::Redis

Inherits:
Object
  • Object
show all
Extended by:
Base
Defined in:
lib/wayfarer/middleware/redis.rb

Constant Summary

Constants included from Base

Base::API_MODULE

Instance Method Summary collapse

Methods included from Base

api, lazy

Instance Method Details

#call(task) ⇒ Object



8
9
10
11
12
# File 'lib/wayfarer/middleware/redis.rb', line 8

def call(task)
  task[:redis_pool] ||= Wayfarer::Redis::Pool.instance

  yield if block_given?
end