Spec-Zone.ru › Ruby on Rails 4.2

класс ActiveSupport::Cache::NullStore

Родитель:
ActiveSupport::Cache::Store

Реализация кэша, которая ничего не сохраняет. Полезно в средах разработки и тестирования, когда вы не хотите включать кэширование, но вам нужна возможность взаимодействия с интерфейсом кэширования.

Этот кэш реализует локальную стратегию кэширования, поэтому значения фактически будут кэшироваться внутри блоков, использующих эту стратегию. Подробнее см. ActiveSupport::Cache::Strategy::LocalCache.

Публичные методы класса

new(options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 11
def initialize(options = nil)
  super(options)
  extend Strategy::LocalCache
end
Вызывает метод родительского класса ActiveSupport::Cache::Store.new

Публичные методы экземпляра

cleanup(options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 19
def cleanup(options = nil)
end
clear(options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 16
def clear(options = nil)
end
decrement(name, amount = 1, options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 25
def decrement(name, amount = 1, options = nil)
end
delete_matched(matcher, options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 28
def delete_matched(matcher, options = nil)
end
increment(name, amount = 1, options = nil) Показать исходный код
# File activesupport/lib/active_support/cache/null_store.rb, line 22
def increment(name, amount = 1, options = nil)
end

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API