Module: Resque::Plugins::Stages::RedisAccess

Included in:
Cleaner, StagedGroup, StagedGroupList, StagedGroupStage, StagedJob
Defined in:
lib/resque/plugins/stages/redis_access.rb

Overview

A module to add a ‘redis` method for a class in this gem that needs redis to get a reids object that is namespaced.

Constant Summary collapse

NAME_SPACE =
"Resque::Plugins::Stages::"

Instance Method Summary collapse

Instance Method Details

#redisObject



10
11
12
# File 'lib/resque/plugins/stages/redis_access.rb', line 10

def redis
  @redis ||= Redis::Namespace.new(Resque::Plugins::Stages::RedisAccess::NAME_SPACE, redis: Resque.redis)
end