module Bramble::Keys
A collection of helpers for getting string keys in the storage adapter.
Public Instance Methods
data_key(handle, key)
click to toggle source
# File lib/bramble/keys.rb, line 10 def data_key(handle, key) "#{namespace(handle)}:data:#{key}" end
finished_at_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 46 def finished_at_key(handle) "#{namespace(handle)}:finished_at" end
job_id_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 38 def job_id_key(handle) "#{namespace(handle)}:job_id" end
keys_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 14 def keys_key(handle) "#{namespace(handle)}:keys" end
map_finished_count_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 22 def map_finished_count_key(handle) "#{namespace(handle)}:map_finished_count" end
map_total_count_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 18 def map_total_count_key(handle) "#{namespace(handle)}:map_total_count" end
namespace(handle)
click to toggle source
# File lib/bramble/keys.rb, line 6 def namespace(handle) "#{Bramble.config.namespace}:#{handle}" end
reduce_finished_count_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 30 def reduce_finished_count_key(handle) "#{namespace(handle)}:reduce_finished_count" end
reduce_total_count_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 26 def reduce_total_count_key(handle) "#{namespace(handle)}:reduce_total_count" end
result_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 34 def result_key(handle) "#{namespace(handle)}:result" end
status_key(handle)
click to toggle source
# File lib/bramble/keys.rb, line 42 def status_key(handle) "#{namespace(handle)}:status" end