Class: ActiveSupport::Cache::NullStore
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Store
|
|
Instance Chain:
self,
Strategy::LocalCache ,
Store
|
|
Inherits: |
ActiveSupport::Cache::Store
|
Defined in: | activesupport/lib/active_support/cache/null_store.rb |
Overview
A cache store implementation which doesn’t actually store anything. Useful in development and test environments where you don’t want caching turned on but need to go through the caching interface.
This cache does implement the local cache strategy, so values will actually be cached inside blocks that utilize this strategy. See Strategy::LocalCache
for more details.
Class Attribute Summary
Class Method Summary
Instance Attribute Summary
Store
- Inherited
#logger, #options, | |
#silence? | Alias for Store#silence. |
Instance Method Summary
- #cleanup(options = nil)
- #clear(options = nil)
- #decrement(name, amount = 1, options = nil)
- #delete_matched(matcher, options = nil)
- #increment(name, amount = 1, options = nil)
Strategy::LocalCache
- Included
#middleware | Middleware class can be inserted as a |
#with_local_cache | Use a local cache for the duration of block. |
Store
- Inherited
#cleanup | Cleanups the cache by removing expired entries. |
#clear | Clears the entire cache. |
#decrement | Decrements an integer value in the cache. |
#delete | Deletes an entry in the cache. |
#delete_matched | Deletes all entries with keys matching the pattern. |
#exist? | Returns |
#fetch | Fetches data from the cache, using the given key. |
#fetch_multi | Fetches data from the cache, using the given keys. |
#increment | Increments an integer value in the cache. |
#mute | Silences the logger within a block. |
#read | Reads data from the cache, using the given key. |
#read_multi | Reads multiple values at once from the cache. |
#silence, | |
#silence! | Silences the logger. |
#write | Writes the value to the cache, with the key. |
#write_multi |
|
#key_matcher | Adds the namespace defined in the options to a pattern designed to match keys. |
Constructor Details
This class inherits a constructor from ActiveSupport::Cache::Store
Instance Method Details
#cleanup(options = nil)
[ GitHub ]# File 'activesupport/lib/active_support/cache/null_store.rb', line 18
def cleanup( = nil) end
#clear(options = nil)
[ GitHub ]# File 'activesupport/lib/active_support/cache/null_store.rb', line 15
def clear( = nil) end
#decrement(name, amount = 1, options = nil)
[ GitHub ]# File 'activesupport/lib/active_support/cache/null_store.rb', line 24
def decrement(name, amount = 1, = nil) end
#delete_matched(matcher, options = nil)
[ GitHub ]# File 'activesupport/lib/active_support/cache/null_store.rb', line 27
def delete_matched(matcher, = nil) end
#increment(name, amount = 1, options = nil)
[ GitHub ]# File 'activesupport/lib/active_support/cache/null_store.rb', line 21
def increment(name, amount = 1, = nil) end