空缓存存储¶ ↑
一个实际上不存储任何内容的缓存存储实现。在开发和测试环境中很有用,当您不希望启用缓存但又需要通过缓存接口进行操作时。
此缓存确实实现了本地缓存策略,因此值实际上将在利用此策略的块内进行缓存。有关更多详细信息,请参阅 ActiveSupport::Cache::Strategy::LocalCache。
方法
    
  
  
  
    
    
    
    
    
    
      类公共方法
supports_cache_versioning?() 链接
声明缓存版本支持。
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 18 def self.supports_cache_versioning? true end
实例公共方法
cleanup(options = nil) 链接
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 25 def cleanup(options = nil) end
clear(options = nil) 链接
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 22 def clear(options = nil) end
decrement(name, amount = 1, **options) 链接
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 31 def decrement(name, amount = 1, **options) end
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) 链接
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/null_store.rb, line 28 def increment(name, amount = 1, **options) end