
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
cached_key_value_store
Advanced tools
Sending redis a request for each of those thousands of translations scattered throughout your app is slow. This gem memoizes those requests, and sets up a simple mechanism to bust the cache.
If you want to use Redis for I18n, I recommend you watch this railscast, and use this backend instead of the KeyValue one that he uses.
Add this line to your application's Gemfile:
gem 'cached_key_value_store'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cached_key_value_store
In your initializer:
I18n.backend = I18n::Backend::CachedKeyValueStore.new($redis)
The #ensure_freshness! method can be called periodically to make sure
that new changes show up. I put mine in a before filter:
class ApplicationController < ActionController::Base
before_filter :ensure_fresh_i18n
private
def ensure_fresh_i18n
I18n.backend.ensure_freshness! I18n.locale
end
end
You can also call #update_version!(locale) yourself to signal that the
translations have been modified.
The on_update_version hook will be triggered every time the version is
updated.
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)FAQs
Unknown package
We found that cached_key_value_store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.