ActiveSupport::Cache::NamespacedStore
A simple ActiveSupport::Cache implementation that wraps another implementation to prefix/namespace keys.
Usage
Rails.cache.write('prefix:1', 'foo')
cache = ActiveSupport::Cache::NamespacedStore.new 'prefix:', Rails.cache
cache.read '1'
# => 'foo'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request