class Docket::Storage::Base

Attributes

db[RW]
namespace[RW]

Public Class Methods

new(args={}) click to toggle source
# File lib/docket/storage/base.rb, line 6
def initialize args={}
  self.namespace = args[:namespace] || Docket.configuration.storage_namespace
end

Public Instance Methods

append(key, value) click to toggle source
# File lib/docket/storage/base.rb, line 13
def append key, value
end
clear!() click to toggle source
# File lib/docket/storage/base.rb, line 31
def clear! 
end
close() click to toggle source
# File lib/docket/storage/base.rb, line 25
def close
end
closed?() click to toggle source
# File lib/docket/storage/base.rb, line 28
def closed?
end
load() click to toggle source
# File lib/docket/storage/base.rb, line 22
def load
end
read(key) click to toggle source
# File lib/docket/storage/base.rb, line 19
def read key
end
remove(key) click to toggle source
# File lib/docket/storage/base.rb, line 16
def remove key
end
save(key, value, options={}) click to toggle source
# File lib/docket/storage/base.rb, line 10
def save key, value, options={}
end

Private Instance Methods

clean(key) click to toggle source
# File lib/docket/storage/base.rb, line 40
def clean key
  key.gsub("#{self.namespace}:", "")
end
namespaced(key) click to toggle source
# File lib/docket/storage/base.rb, line 36
def namespaced key
  [self.namespace, key].compact.join(":")
end
touch(&block) click to toggle source
# File lib/docket/storage/base.rb, line 44
def touch &block
end