Skip to content

在 .NET6.0 中实现 Leaf-segment 分布式 ID 生成系统

Notifications You must be signed in to change notification settings

macroecho/netLeaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

在 .NET6.0 中实现 Leaf-segment 分布式 ID 生成系统

使用方式:

var idGenerator = IdGeneratorFactory.GetDefault("Server=127.0.0.1;Port=3306;Uid=root;Pwd=keikei;DataBase=netleaf;CharSet=utf8;allow zero datetime=true;Max Pool Size=10000;");
// 初始化。
idGenerator.Init();
// 生成 Id。
var id = idGenerator.Generation();

详细信息: https://blog.csdn.net/ruiye99/article/details/131011405

About

在 .NET6.0 中实现 Leaf-segment 分布式 ID 生成系统

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages