module ChainedJob::Helpers

Public Instance Methods

job_key(job_arguments_key) click to toggle source
# File lib/chained_job/helpers.rb, line 7
def job_key(job_arguments_key)
  "chained_job:#{job_arguments_key}"
end
redis_key(job_key, tag) click to toggle source
# File lib/chained_job/helpers.rb, line 11
def redis_key(job_key, tag)
  "#{job_key}:#{tag}"
end
serialize(arguments) click to toggle source
# File lib/chained_job/helpers.rb, line 19
def serialize(arguments)
  arguments.map { |argument| Marshal.dump(argument) }
end
tag_list(prefix) click to toggle source
# File lib/chained_job/helpers.rb, line 15
def tag_list(prefix)
  "#{prefix}:tags"
end