Snowflake.Core 2.0.0

Twitter的分布式全局唯一ID算法,雪花(snowflake)算法。支持.NET Core 2.0。
Twitter's snowflake for .net core.

Install-Package Snowflake.Core -Version 2.0.0
dotnet add package Snowflake.Core --version 2.0.0
<PackageReference Include="Snowflake.Core" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Snowflake.Core --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage:

var worker = new IdWorker(1, 1);
long id = worker.NextId();

IdWorker should be instantiated once.Otherwise,there will be repeat.

github:https://github.com/stulzq/snowflake-net

Usage:

var worker = new IdWorker(1, 1);
long id = worker.NextId();

IdWorker should be instantiated once.Otherwise,there will be repeat.

github:https://github.com/stulzq/snowflake-net

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 29,740 10/12/2017