Method: Cash::Config::ClassMethods#index
- Defined in:
- lib/cash/config.rb
permalink #index(attributes, options = {}) ⇒ Object
[View source]
32 33 34 35 |
# File 'lib/cash/config.rb', line 32 def index(attributes, = {}) .assert_valid_keys(:ttl, :order, :limit, :buffer, :order_column) (@cache_config.indices.unshift(Index.new(@cache_config, self, attributes, ))).uniq! end |