跳到內文 跳到搜尋

Null 快取儲存庫

一個未實際儲存任何內容的快取儲存庫實作。可用於不希望開啟快取功能但需要透過快取介面進行處理的開發與測試環境。

此快取確實實作了本地快取策略,因此值實際上將快取在採用此策略的區塊內。更多詳情,請參閱 ActiveSupport::Cache::Strategy::LocalCache

方法
C
D
I
S

類別公共方法

supports_cache_versioning?()

宣告快取版本控管支援。

# File activesupport/lib/active_support/cache/null_store.rb, line 18
def self.supports_cache_versioning?
  true
end

實例公共方法

cleanup(options = nil)

# File activesupport/lib/active_support/cache/null_store.rb, line 25
def cleanup(options = nil)
end

clear(options = nil)

# File activesupport/lib/active_support/cache/null_store.rb, line 22
def clear(options = nil)
end

decrement(name, amount = 1, options = nil)

# File activesupport/lib/active_support/cache/null_store.rb, line 31
def decrement(name, amount = 1, options = nil)
end

delete_matched(matcher, options = nil)

# File activesupport/lib/active_support/cache/null_store.rb, line 34
def delete_matched(matcher, options = nil)
end

increment(name, amount = 1, options = nil)

# File activesupport/lib/active_support/cache/null_store.rb, line 28
def increment(name, amount = 1, options = nil)
end