Exemplo n.º 1
0
 /// <summary>
 /// 在线用户SessionId列表
 /// </summary>
 /// <returns></returns>
 public IList <string> GetKeyAll()
 {
     return(RedisHash.SearchKeys("session_" + "*"));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 用户数量
 /// </summary>
 /// <returns></returns>
 public int Count()
 {
     return(RedisHash.SearchKeys("session_" + "*").Count);
 }