Skip to content

remind101/namespaced-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

An ActiveSupport::Cache implementation for prefixing keys automatically.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages