/// <summary>
 /// 创建Redis锁操作
 /// </summary>
 /// <typeparam name="T">泛型</typeparam>
 /// <param name="redisLockFactroy">委托</param>
 /// 时间:2016/11/4 14:46
 /// 备注:
 public void CreateLock <T>(Action <IRedisTypedClient <T> > redisLockFactroy)
     where T : IHasId <string>
 {
     using (IRedisClient redisClient = PRM.GetClient())
     {
         using (IRedisTypedClient <T> typedclient = redisClient.As <T>())
         {
             using (typedclient.AcquireLock())
             {
                 redisLockFactroy(typedclient);
             }
         }
     }
 }