
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
grunt-redis-clear
Advanced tools
A Grunt plugin to clear keys from your redis database, automatically, when using redis as a cache engine.
A Grunt plugin to delete keys from your redis database, automatically. Useful when using redis as a cache engine.
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-clear-redis --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-clear-redis');
In your project's Gruntfile, add a section named clear_redis
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
clear_redis: {
development: {
keys: [
'cakephp_cake_core_*',
'cakephp_cake_model_*',
'cakephp_cache_*',
],
}
production: {
database: 1,
keys: [
'cakephp_cake_core_*',
'cakephp_cake_model_*',
'cakephp_cache_*',
],
}
},
});
And that's all.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
v0.2.0 Added support for multiple databases. v0.1.0 First useful but limited prototype.
FAQs
A Grunt plugin to clear keys from your redis database, automatically, when using redis as a cache engine.
The npm package grunt-redis-clear receives a total of 6 weekly downloads. As such, grunt-redis-clear popularity was classified as not popular.
We found that grunt-redis-clear demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
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.