Class: Wurk::Web::PoolScope::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/wurk/web/pool_scope.rb

Overview

Minimal capsule-shaped duck type: Wurk.redis_pool only ever calls #redis_pool on the thread-local. Resolved lazily so a post-fork reset_redis_pools! rebuild is picked up transparently.

Instance Method Summary collapse

Instance Method Details

#redis_poolObject



40
41
42
# File 'lib/wurk/web/pool_scope.rb', line 40

def redis_pool
  Wurk.configuration.web_redis_pool
end