class Redis::Wrap
Attributes
key[R]
to_s[R]
Public Class Methods
new(key)
click to toggle source
# File lib/redis/wrap.rb, line 9 def initialize(key) @key = key.to_s end
Public Instance Methods
method_missing(command, *arguments, &block)
click to toggle source
# File lib/redis/wrap.rb, line 13 def method_missing(command, *arguments, &block) redis.send(command, key, *arguments, &block) end
redis()
click to toggle source
# File lib/redis/wrap.rb, line 17 def redis Redis.current end