2.0.1 • Published 4 months ago

koatty_schedule v2.0.1

Weekly downloads
9
License
BSD-3-Clause
Repository
github
Last release
4 months ago

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
    }
}
2.0.1

4 months ago

2.0.0

4 months ago

1.6.0

4 months ago

1.5.11

9 months ago

1.5.10

1 year ago

1.5.8

1 year ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.2

2 years ago

1.4.8

2 years ago

1.4.10

2 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago