sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Cache#expand_key
Internal: Expand object cache key into a short String key. The String should be under 250 characters so its compatible with Memcache. key - JSON serializable key Returns a String with a length less than 250 characters.
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-expand_key-for-pr
# Commit to gitgit add lib/sprockets/cache.rbgit commit -m "better docs for Sprockets::Cache#expand_key"
# 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-expand_key-for-pr
hub pull-request
# Celebrate!