Class: Redpear::Store::Enumerable

Inherits:
Base
  • Object
show all
Includes:
Enumerable
Defined in:
lib/redpear/store/enumerable.rb

Direct Known Subclasses

Hash, List, Set, SortedSet

Constant Summary

Constants inherited from Base

Base::IS_NIL, Base::IS_ONE, Base::IS_TRUE, Base::IS_ZERO, Base::PICK_FIRST, Base::TO_INT, Base::TO_SET

Instance Attribute Summary

Attributes inherited from Base

#conn, #key

Instance Method Summary collapse

Methods inherited from Base

#clear, #exists?, #expire, #expire_at, #expire_in, #initialize, #inspect, #purge!, temporary, #ttl, #type, #watch

Constructor Details

This class inherits a constructor from Redpear::Store::Base

Instance Method Details

#countInteger

Alias for #length

Returns:

  • (Integer)

    the length



16
17
18
# File 'lib/redpear/store/enumerable.rb', line 16

def count
  length
end

#sizeInteger

Alias for #length

Returns:

  • (Integer)

    the length



10
11
12
# File 'lib/redpear/store/enumerable.rb', line 10

def size
  length
end