Method: Cash::Config::ClassMethods#index

Defined in:
lib/cash/config.rb

#index(attributes, options = {}) ⇒ Object

[View source]

32
33
34
35
# File 'lib/cash/config.rb', line 32

def index(attributes, options = {})
  options.assert_valid_keys(:ttl, :order, :limit, :buffer, :order_column)
  (@cache_config.indices.unshift(Index.new(@cache_config, self, attributes, options))).uniq!
end