New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cron-redis

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-redis - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "cron-redis",
"version": "1.0.0",
"version": "1.0.1",
"description": "cron task for node by redis",

@@ -5,0 +5,0 @@ "main": "app.js",

@@ -40,10 +40,15 @@ ## cron task for node by redis

* redisConfig {Object}
```
{
host: '127.0.0.1',
port: 6379,
password: '',
db: 0
}
```
```
{
host: '127.0.0.1',
port: 6379,
DB: 1,
opts: {
auth_pass: 'root',
password: 'root'
}
}
```

@@ -60,2 +65,28 @@

* method {String} the name of method will be callback.
* params {Array}
* params {Array}
* rule {options} cron rule . {Date} or {* */1 * * * *}
Supported format
========
```
* * * * * *
┬ ┬ ┬ ┬ ┬ ┬
│ │ │ │ │ |
│ │ │ │ │ └ day of week (0 - 7) (0 or 7 is Sun)
│ │ │ │ └───── month (1 - 12)
│ │ │ └────────── day of month (1 - 31)
│ │ └─────────────── hour (0 - 23)
│ └──────────────────── minute (0 - 59)
└───────────────────────── second (0 - 59, optional)
```
or
```
new Date();
moment().add(3, 's').toDate()
```
## More
[bull](https://github.com/OptimalBits/bull)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc