/// <summary> /// 是否存在用户信息 /// </summary> /// <param name="token">用户token</param> /// <returns>存在返回true,不存在返回false</returns> public bool ContainsUserInfo(string key) { lock (RedisDataBase) { return(RedisDataBase.KeyExists(key)); } }