sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Cache#set
Public: Low level API to set item directly to the backend cache store.
This API may be used publicly, but may have undefined behavior
depending on the backend store being used. Prefer the
Cache#fetch API over using this.
key - JSON serializable key
value - A consistent JSON serializable object for the given key. Setting
a different value for the given key has undefined behavior.
local - Set on local cache (default: false)
Returns the value argument.Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/cache.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Cache-set-for-pr
# Commit to gitgit add lib/sprockets/cache.rbgit commit -m "better docs for Sprockets::Cache#set"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--Cache-set-for-pr
hub pull-request
# Celebrate!