Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
hitnmiss-redis_driver
Advanced tools
This gem provides a Redis driver for the Hitnmiss caching library. It does this so that people can easily use Redis as a cache store when using Hitnmiss.
Add this line to your application's Gemfile:
gem 'hitnmiss-redis_driver'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hitnmiss-redis_driver
You can use this driver by simply doing the following in your Hitnmiss cache repository.
Register the driver with Hitnmiss
in your application using the following.
Hitnmiss.register_driver(:redis_driver, Hitnmiss::RedisDriver.new("redis://your_redis_url"))
Then use the registered driver in your cache repository as follows.
# lib/cache_repositories/most_recent_price.rb
class MostRecentPrice
include Hitnmiss::Repository
driver :redis_driver
end
Thats it. Note: Registering a driver basically creates a singleton version of that driver instance. So, if you want multiple redis drivers with different configurations you will need to register multiple instances of the redis driver.
More details about how to set drivers can be found at Hitnmiss.
If you are interested in contributing to Hitnmiss. There is a guide (both code and general help) over in CONTRIBUTING.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that hitnmiss-redis_driver 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.