Redis::Store::Namespace

Public Instance Methods

decrby(key, increment) click to toggle source
# File lib/redis/store/namespace.rb, line 24
def decrby(key, increment)
  namespace(key) { |key| super(key, increment) }
end
del(*keys) click to toggle source
# File lib/redis/store/namespace.rb, line 32
def del(*keys)
  super *keys.map {|key| interpolate(key) } if keys.any?
end
exists(key) click to toggle source
# File lib/redis/store/namespace.rb, line 16
def exists(key)
  namespace(key) { |key| super(key) }
end
flushdb() click to toggle source
# File lib/redis/store/namespace.rb, line 44
def flushdb
  del *keys
end
get(key, options = nil) click to toggle source
# File lib/redis/store/namespace.rb, line 12
def get(key, options = nil)
  namespace(key) { |key| super(key, options) }
end
incrby(key, increment) click to toggle source
# File lib/redis/store/namespace.rb, line 20
def incrby(key, increment)
  namespace(key) { |key| super(key, increment) }
end
keys(pattern = "*") click to toggle source
# File lib/redis/store/namespace.rb, line 28
def keys(pattern = "*")
  namespace(pattern) { |pattern| super(pattern).map{|key| strip_namespace(key) } }
end
mget(*keys) click to toggle source
# File lib/redis/store/namespace.rb, line 36
def mget(*keys)
  super *keys.map {|key| interpolate(key) } if keys.any?
end
set(key, val, options = nil) click to toggle source
# File lib/redis/store/namespace.rb, line 4
def set(key, val, options = nil)
  namespace(key) { |key| super(key, val, options) }
end
setnx(key, val, options = nil) click to toggle source
# File lib/redis/store/namespace.rb, line 8
def setnx(key, val, options = nil)
  namespace(key) { |key| super(key, val, options) }
end
to_s() click to toggle source
# File lib/redis/store/namespace.rb, line 40
def to_s
  "#{super} with namespace #{@namespace}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.