
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
cachetree-redis
Advanced tools
A Redis storage backend for Cachetree.
npm install cachetree-redis
To create a Cachtree instance using a Redis storage backend:
var cachetreeRedis = require('cachetree-redis'),
cachetree = require('cachetree),
store = cachetreeRedis(),
cache = cachetree(store);
The cachetree-redis
module exports a single constructor function that accepts an optional options object and returns a Redis storage backend instance.
cachetreeRedis(options)
options
: An object containing the following configuration options:
client
: Redis client instance. If provided, port
, host
, options
, pw
and db
are ignoredport
: Redis server porthost
: Redis server hostoptions
: Redis client options passed to redis.createClient
pw
: Password for authenticating with Redispass
: Alias for pw
, if you're not a fan of the whole brevity thingpassword
: Alias for pw
, same as pass
db
: Number of the database to selectdatabase
: Alias for db
delimiter
: Redis key delimiter, defaults to :
autoCast
: Automatically stringify and parse values, defaults to true
The returned store exposes the underlying Redis client through a property named client
.
cachetree-redis
tests require Mocha and can be run with either npm test
or make test
. You can specify Mocha options, such as the reporter, by adding a mocha.opts file, which is ignored by git, to the test
directory.
By default, the test suite uses fakeredis to mock a Redis server. To run the tests against an actual Redis server, add a JSON file named options.json
to the test
directory. This file should contain the options to be passed to the cachetree-redis
constructor function. Like the mocha.opts
file, options.json
is ignored by git.
FAQs
Redis storage backend for Cachetree
The npm package cachetree-redis receives a total of 23 weekly downloads. As such, cachetree-redis popularity was classified as not popular.
We found that cachetree-redis 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.