Class: Reliable::List

Inherits:
Object
  • Object
show all
Defined in:
lib/reliable/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, redis) ⇒ List

Returns a new instance of List.



5
6
7
8
# File 'lib/reliable/list.rb', line 5

def initialize(key, redis)
  @key = key
  @redis = redis
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/reliable/list.rb', line 3

def key
  @key
end

Instance Method Details

#llenObject



10
11
12
# File 'lib/reliable/list.rb', line 10

def llen
  @redis.llen(key)
end