Class: Reliable::List
- Inherits:
-
Object
- Object
- Reliable::List
- Defined in:
- lib/reliable/list.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, redis) ⇒ List
constructor
A new instance of List.
- #llen ⇒ Object
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/reliable/list.rb', line 3 def key @key end |
Instance Method Details
#llen ⇒ Object
10 11 12 |
# File 'lib/reliable/list.rb', line 10 def llen @redis.llen(key) end |