class Async::Redis::Key
Attributes
path[R]
Public Class Methods
[](path)
click to toggle source
# File lib/async/redis/key.rb, line 26 def self.[] path self.new(path) end
new(path)
click to toggle source
# File lib/async/redis/key.rb, line 32 def initialize(path) @path = path end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/async/redis/key.rb, line 54 def <=> other @path <=> other.to_str end
[](key)
click to toggle source
# File lib/async/redis/key.rb, line 50 def [] key self.class.new("#{@path}:#{key}") end
size()
click to toggle source
# File lib/async/redis/key.rb, line 36 def size @path.bytesize end
to_s()
click to toggle source
# File lib/async/redis/key.rb, line 42 def to_s @path end
to_str()
click to toggle source
# File lib/async/redis/key.rb, line 46 def to_str @path end