using System.Collections.Generic; using System.Linq; using ZR.Common; using ZR.Common.Cache; namespace ZR.Service.System { public class CacheService { #region 用户权限 缓存 public static List GetUserPerms(string key) { return (List)CacheHelper.GetCache(key); //return RedisServer.Cache.Get>(key).ToList(); } public static void SetUserPerms(string key, object data) { CacheHelper.SetCache(key, data); //RedisServer.Cache.Set(key, data); } public static void RemoveUserPerms(string key) { CacheHelper.Remove(key); //RedisServer.Cache.Del(key); } #endregion } }