sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::Cache::FileStore#set

Public: Set a key and value in the cache.

This API should not be used directly, but via the Cache wrapper API.

key   - String cache key.
value - Object value.

Returns Object value.

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/sprockets.git

cd sprockets

open lib/sprockets/cache/file_store.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--Cache--FileStore-set-for-pr


# Commit to git

git add lib/sprockets/cache/file_store.rbgit commit -m "better docs for Sprockets::Cache::FileStore#set"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Sprockets--Cache--FileStore-set-for-pr

hub pull-request


# Celebrate!