rails/rails — pull request #3397 by bdurand (2011-10-21 19:34:16+00:00)
Title: Null store

This patch provides a NullStore implementation of ActiveSupport::Cache::Store suitable for use in development and test environments where the code needs to use the cache interface, but actually caching data is not desired.

The cache store will never store data itself. It does implement the LocalCache strategy which will store values for the duration of a request to match the behavior of other cache implementations used in production environments.

It would be used then in the development.rb, for example, as:

```ruby
config.cache_store = :null_store
```

or alternatively

```ruby
config.cache_store = nil
```

(Note: this request was originally opened in Lighthouse at https://rails.lighthouseapp.com/projects/8994/tickets/6128)