Пример #1
0
 /// <summary>生产添加</summary>
 /// <param name="values"></param>
 /// <returns></returns>
 public Int32 Add(IEnumerable<T> values)
 {
     var ps = new List<Object>
     {
         _Key
     };
     foreach (var item in values)
     {
         ps.Add(item);
     }
     return _Redis.Execute(rc => rc.Execute<Int32>("RPUSH", ps.ToArray()));
 }
Пример #2
0
 /// <summary>执行命令</summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="func"></param>
 /// <param name="write">是否写入操作</param>
 /// <returns></returns>
 public virtual T Execute <T>(Func <RedisClient, T> func, Boolean write = false) => Redis.Execute(func, write);
Пример #3
0
 /// <summary>执行命令</summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="func"></param>
 /// <returns></returns>
 public virtual T Execute <T>(Func <RedisClient, T> func) => Redis.Execute(func);