Skip to content

Commit

Permalink
docs: add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
oneWalker committed Nov 16, 2024
1 parent aecee0a commit 2f46c2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ config.schedule = {
],
// add it when making sure it only running in one cluster.
cluster: {
enable: true,
enable: false, // default is false, true is for running
lockType: 'redis', //use redis as lock. reserve for other lock type
lockedTtl: 6000, // the automatic expired time for lock, avoid lock leak
// add redis for redis lock
redis: {
client: {
Expand Down

0 comments on commit 2f46c2c

Please sign in to comment.