
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
LayerCake is a simple gem that allows you to specify more than one cache store in rails.
It is built on the idea that memory store is the most efficient store with no network or file overhead, but serves multi-process or multi-server architectures, hence a fallback like filestore or memcached store is necessary.
The order of the arguments are defining the layers, where the first ones are on the lowest/closest levels.
Add this in your application.rb (Rails 3 anyway)
config.cache_store = Layercake::Store.new(:memory_store, :mem_cache_store => 'localhost:11211')
(localhost:11211 is default, and not really necessary to specify)
Use it like you would normally use any cache store.
Rails.cache.fetch Rails.cache.write Rails.cache.read
all the options given will be passed on to the individual cache stores
If you write, I'll merge
Copyright (c) 2010 Peter Haza. See LICENSE for details.
FAQs
Unknown package
We found that layercake 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.