sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
ActiveSupport::Cache::Store#fetch_multi
Fetches data from the cache, using the given keys. If there is data in
the cache with the given keys, then that data is returned. Otherwise,
the supplied block is called for each key for which there was no data,
and the result will be written to the cache and returned.
Options are passed to the underlying cache implementation.
Returns a hash with the data for each of the names. For example:
cache.write("bim", "bam")
cache.fetch_multi("bim", "boom") { |key| key * 2 }
# => { "bam" => "bam", "boom" => "boomboom" }Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/cache.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveSupport--Cache--Store-fetch_multi-for-pr
# Commit to gitgit add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/cache.rbgit commit -m "better docs for ActiveSupport::Cache::Store#fetch_multi"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveSupport--Cache--Store-fetch_multi-for-pr
hub pull-request
# Celebrate!