sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

ActiveSupport::Cache::MemCacheStore#decrement

Decrement a cached value. This method uses the memcached decr atomic
operator and can only be used on values written with the :raw option.
Calling it on a value not stored with :raw will initialize that value
to zero.

Source | Google | Stack overflow

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/mem_cache_store.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--Cache--MemCacheStore-decrement-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/cache/mem_cache_store.rbgit commit -m "better docs for ActiveSupport::Cache::MemCacheStore#decrement"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--Cache--MemCacheStore-decrement-for-pr

hub pull-request


# Celebrate!