lib/ohm/collection.rb in ohm-0.0.34 vs lib/ohm/collection.rb in ohm-0.0.35
- old
+ new
@@ -122,10 +122,10 @@
db.lpush(key, value)
end
# @return [Array] Elements of the list.
def all
- db.list(key)
+ db.lrange(key, 0, -1)
end
# @return [Integer] Returns the number of elements in the list.
def size
db.llen(key)