1.6.2 • Published 8 months ago
koatty_schedule v1.6.2
koatty_schedule
Schedule for koatty.
Koatty框架的 Scheduled, SchedulerLock, Lock 支持库
Usage
db.ts in koatty project:
export default {
...
"CacheStore": {
type: "memory", // redis or memory, memory is default
// key_prefix: "koatty",
// host: '127.0.0.1',
// port: 6379,
// name: "",
// username: "",
// password: "",
// db: 0,
// timeout: 30,
// pool_size: 10,
// conn_timeout: 30
},
...
};
used in service:
import { Scheduled, SchedulerLock } from "koatty_schedule";
export class TestService {
@Scheduled("0 * * * * *")
@SchedulerLock("testCron") //locker
Test(){
//todo
}
}
1.6.2
8 months ago
2.0.1
1 year ago
2.0.0
1 year ago
1.6.0
2 years ago
1.5.11
2 years ago
1.5.10
3 years ago
1.5.8
3 years ago
1.5.7
3 years ago
1.5.6
3 years ago
1.5.5
3 years ago
1.5.4
4 years ago
1.5.2
4 years ago
1.4.8
4 years ago
1.4.10
4 years ago
1.4.6
4 years ago
1.4.5
4 years ago
1.4.4
4 years ago
1.4.2
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.1.1
5 years ago
1.1.2
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago