Get on Board Dev
Published in

Get on Board Dev

Unsplash

Dalli memcache y soporte para race_condition_ttl

Evitando deadlocks al escribir caché en varios hilos a la vez

# BEFORE
config.cache_store = :dalli_store, {
pool_size: ENV.fetch(“RAILS_MAX_THREADS”, 5)
}
# AFTER (with support for race conditions)
config.cache_store = :mem_cache_store, {
race_condition_ttl: 10.seconds,
pool_size: ENV.fetch(“RAILS_MAX_THREADS”, 5)
}

--

--

Artículos y comentarios técnicos del dev team de Get on Board.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jorge A. Rodriguez S.

Co-Founder / CTO @getonbrd (500 SF), Partner @continuumhq and once co-organizer at http://starsconf.com