From c8595d3bac9ec7f6a7a66925cca234d997b99019 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 4 May 2019 01:42:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(#IW4PH):=20=E8=B7=A8=E5=9F=9F=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=B8=85=E7=90=86=E6=94=AF=E6=8C=81=E7=9B=B8=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment 依赖组件Longbow.Cache升级到2.2.8 comment #IW4PH #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=IW4PH --- Bootstrap.Admin/appsettings.Development.json | 167 +++++++++++++++++- .../Bootstrap.Client.DataAccess.csproj | 2 +- .../Bootstrap.DataAccess.csproj | 2 +- 3 files changed, 167 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/appsettings.Development.json b/Bootstrap.Admin/appsettings.Development.json index c2eb8d0e..11bdda13 100644 --- a/Bootstrap.Admin/appsettings.Development.json +++ b/Bootstrap.Admin/appsettings.Development.json @@ -20,7 +20,7 @@ "KeyPath": "..\\keys", "DisableAutomaticKeyGeneration": false, "LongbowCache": { - "Enabled": false, + "Enabled": true, "CorsItems": [ { "Enabled": true, @@ -31,11 +31,174 @@ }, { "Enabled": true, - "Key": "APP", + "Key": "App", "Url": "http://localhost:49185/CacheList.axd", "Desc": "测试系统", "Self": false } + ], + "CacheItems": [ + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRolesByUserName", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "指定用户角色数据缓存" + }, + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRolesByUrl", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过菜单获得角色数据" + }, + { + "Enabled": true, + "Key": "BootstrapUser-RetrieveUsersByName", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "登录用户数据" + }, + { + "Enabled": true, + "Key": "BootstrapDict-RetrieveDicts", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "所有字典数据缓存" + }, + { + "Enabled": true, + "Key": "BootstrapMenu-RetrieveMenus", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "用户所有菜单数据缓存" + }, + { + "Enabled": true, + "Key": "GroupHelper-RetrieveGroupsByUserName", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "指定用户组数据缓存" + }, + { + "Enabled": true, + "Key": "UserHelper-RetrieveUsers", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "所有用户数据" + }, + { + "Enabled": true, + "Key": "UserHelper-RetrieveUsersByRoleId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过角色ID获得所有用户数据" + }, + { + "Enabled": true, + "Key": "UserHelper-RetrieveUsersByGroupId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过部门ID获得所有用户数据" + }, + { + "Enabled": true, + "Key": "UserHelper-RetrieveNewUsers", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "新用户数据" + }, + { + "Enabled": true, + "Key": "MenuHelper-RetrieveMenusByRoleId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过角色ID获得所有菜单数据" + }, + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRoles", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "所有角色数据" + }, + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRolesByUserId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过用户ID获得所有角色数据" + }, + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRolesByMenuId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过菜单ID获得所有角色数据" + }, + { + "Enabled": true, + "Key": "RoleHelper-RetrieveRolesByGroupId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过部门ID获得所有角色数据" + }, + { + "Enabled": true, + "Key": "GroupHelper-RetrieveGroups", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "所有部门数据" + }, + { + "Enabled": true, + "Key": "GroupHelper-RetrieveGroupsByUserId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过用户ID获得所有部门数据" + }, + { + "Enabled": true, + "Key": "GroupHelper-RetrieveGroupsByRoleId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过角色ID获得所有部门数据" + }, + { + "Enabled": true, + "Key": "AppHelper-RetrieveAppsByRoleId", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "通过角色ID获得所有应用程序数据" + }, + { + "Enabled": true, + "Key": "DictHelper-RetrieveDictsCategory", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "字典分类数据" + }, + { + "Enabled": true, + "Key": "ExceptionHelper-RetrieveExceptions", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "程序异常数据" + }, + { + "Enabled": true, + "Key": "MessageHelper-RetrieveMessages", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "站内消息数据" + }, + { + "Enabled": true, + "Key": "TaskHelper-RetrieveTasks", + "Interval": 600000, + "SlidingExpiration": true, + "Desc": "所有任务数据" + } ] } } diff --git a/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj b/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj index b0f1c7e2..bdc4c919 100644 --- a/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj +++ b/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj @@ -12,7 +12,7 @@ - + diff --git a/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj b/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj index b4d4f9b3..b08d17c3 100644 --- a/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj +++ b/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj @@ -16,7 +16,7 @@ - +