using System; using System.Diagnostics; using System.Net; using System.Net.Sockets; using System.Threading; /// <summary> /// ID 生成器 /// </summary> public class IDFactory { #region Static Fields /// <summary> /// The factory. /// </su
考虑到sql server以及c#,最多只能用decimal类型,也就是29位的数字,做了下面这个数字型id生成器: class Program { static void Main(string[] args) { ; Timing t = new Timing(); t.Start(); ) UniqueIdGenerator.Next(); t.Stop(); t.Display(""); } } public static class UniqueIdGeneratorHelp
前段时间细节的了解了Jedis的使用,Jedis是redis的java版本的客户端实现.本文做个总结,主要分享如下内容: [pipeline][分布式的id生成器][分布式锁[watch][multi]][redis分布式]好了,一个一个来.一. Pipeline官方的说明是:starts a pipeline,which is a very efficient way to send lots of command and read all the responses when you fin