diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 8d10cf9..5b4c473 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -1,6 +1,8 @@ name: codestyle on: pull_request: + paths: + - "!*.md" jobs: code-coverage: name: Code Coverage diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 264c39e..b6f8a8d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -6,6 +6,8 @@ on: - master - '*.x' pull_request: + paths: + - "!*.md" permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 804f363..24d128a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: test on: pull_request: + paths: + - "!*.md" jobs: phptests: runs-on: ${{ matrix.operating-system }} diff --git a/README.md b/README.md index e0726a1..f2aa8a2 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ Snowflake is a network service for generating unique ID numbers at high scale wi > You must know, The ID generated by the snowflake algorithm is not guaranteed to be unique. > For example, when two different requests enter the same node of the same data center at the same time, and the sequence generated by the node is the same, the generated ID will be duplicated. -So if you want to use the snowflake algorithm to generate unique ID, You must ensure: The sequence-number generated in the same millisecond of the same node is unique. +If you want to use the snowflake algorithm to generate unique ID, You must ensure: The sequence-number generated in the same millisecond of the same node is unique. Based on this, we created this package and integrated multiple sequence-number providers into it. * RandomSequenceResolver (Random) -* RedisSequenceResolver (based on redis psetex and incrby) +* FileLockResolver(PHP file lock `fopen/flock`, **Concurrency Safety**) +* RedisSequenceResolver (based on redis psetex and incrby, **Concurrency Safety**) * LaravelSequenceResolver (based on redis psetex and incrby) * SwooleSequenceResolver (based on swoole_lock) -* FileLockResolver(PHP file lock `fopen/flock`) Each provider only needs to ensure that the serial number generated in the same millisecond is different. You can get a unique ID.