空缓存存储
一个实际上不存储任何内容的缓存存储实现。在开发和测试环境中很有用,在这些环境中,您不想启用缓存,但需要通过缓存接口。
此缓存确实实现了本地缓存策略,因此值实际上将缓存在利用此策略的块中。有关更多详细信息,请参阅 ActiveSupport::Cache::Strategy::LocalCache
。
方法
类公共方法
supports_cache_versioning?() 链接
宣传缓存版本控制支持。
实例公共方法
cleanup(options = nil) 链接
clear(options = nil) 链接
decrement(name, amount = 1, options = nil) 链接
delete_matched(matcher, options = nil) 链接
来源:显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 34 def delete_matched(matcher, options = nil) end
increment(name, amount = 1, options = nil) 链接
来源:显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 28 def increment(name, amount = 1, options = nil) end