Module: Cash::Index::Attributes
- Included in:
- Cash::Index
- Defined in:
- lib/cash/index.rb
Instance Method Summary collapse
Instance Method Details
#buffer ⇒ Object
60 61 62 |
# File 'lib/cash/index.rb', line 60 def buffer [:buffer] end |
#limit ⇒ Object
56 57 58 |
# File 'lib/cash/index.rb', line 56 def limit [:limit] end |
#order ⇒ Object
52 53 54 |
# File 'lib/cash/index.rb', line 52 def order @order ||= [:order] || :asc end |
#ttl ⇒ Object
48 49 50 |
# File 'lib/cash/index.rb', line 48 def ttl @ttl ||= [:ttl] || @config.ttl end |
#window ⇒ Object
64 65 66 |
# File 'lib/cash/index.rb', line 64 def window limit && limit + buffer end |