sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Cache::MemoryStore#initialize
Public: Initialize the cache store.
max_size - A Integer of the maximum number of keys the store will hold.
(default: 1000).Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/cache/memory_store.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Cache--MemoryStore-initialize-for-pr
# Commit to gitgit add lib/sprockets/cache/memory_store.rbgit commit -m "better docs for Sprockets::Cache::MemoryStore#initialize"
# 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--MemoryStore-initialize-for-pr
hub pull-request
# Celebrate!