重构代码:更改缓存键值名称
This commit is contained in:
parent
33e9c09c01
commit
57efd8d419
|
@ -65,21 +65,21 @@
|
||||||
"CacheItems": [
|
"CacheItems": [
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapAdminAuthorizeFilter-RetrieveRolesByUrl",
|
"Key": "RoleHelper-RetrieveRolesByUrl",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "通过菜单获得角色数据"
|
"Desc": "通过菜单获得角色数据"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapAdminGroupMiddleware-RetrieveGroupsByUserName",
|
"Key": "GroupHelper-RetrieveGroupsByUserName",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "指定用户组数据缓存"
|
"Desc": "指定用户组数据缓存"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapAdminRoleMiddleware-RetrieveRolesByUserName",
|
"Key": "RoleHelper-RetrieveRolesByUserName",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "指定用户角色数据缓存"
|
"Desc": "指定用户角色数据缓存"
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapUser-RetrieveUsers",
|
"Key": "UserHelper-RetrieveUsers",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "所有用户数据"
|
"Desc": "所有用户数据"
|
||||||
|
@ -114,14 +114,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapUser-RetrieveUsersByRoleId",
|
"Key": "UserHelper-RetrieveUsersByRoleId",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "通过角色ID获得所有用户数据"
|
"Desc": "通过角色ID获得所有用户数据"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Key": "BootstrapUser-RetrieveUsersByGroupId",
|
"Key": "UserHelper-RetrieveUsersByGroupId",
|
||||||
"Interval": 600,
|
"Interval": 600,
|
||||||
"SlidingExpiration": true,
|
"SlidingExpiration": true,
|
||||||
"Desc": "通过部门ID获得所有用户数据"
|
"Desc": "通过部门ID获得所有用户数据"
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace Bootstrap.DataAccess
|
||||||
public const string RetrieveGroupsDataKey = "GroupHelper-RetrieveGroups";
|
public const string RetrieveGroupsDataKey = "GroupHelper-RetrieveGroups";
|
||||||
public const string RetrieveGroupsByUserIdDataKey = "GroupHelper-RetrieveGroupsByUserId";
|
public const string RetrieveGroupsByUserIdDataKey = "GroupHelper-RetrieveGroupsByUserId";
|
||||||
public const string RetrieveGroupsByRoleIdDataKey = "GroupHelper-RetrieveGroupsByRoleId";
|
public const string RetrieveGroupsByRoleIdDataKey = "GroupHelper-RetrieveGroupsByRoleId";
|
||||||
public const string RetrieveGroupsByUserNameDataKey = "BootstrapAdminGroupMiddleware-RetrieveGroupsByUserName";
|
public const string RetrieveGroupsByUserNameDataKey = "GroupHelper-RetrieveGroupsByUserName";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询所有群组信息
|
/// 查询所有群组信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -14,8 +14,8 @@ namespace Bootstrap.DataAccess
|
||||||
public const string RetrieveRolesByUserIdDataKey = "RoleHelper-RetrieveRolesByUserId";
|
public const string RetrieveRolesByUserIdDataKey = "RoleHelper-RetrieveRolesByUserId";
|
||||||
public const string RetrieveRolesByMenuIdDataKey = "RoleHelper-RetrieveRolesByMenuId";
|
public const string RetrieveRolesByMenuIdDataKey = "RoleHelper-RetrieveRolesByMenuId";
|
||||||
public const string RetrieveRolesByGroupIdDataKey = "RoleHelper-RetrieveRolesByGroupId";
|
public const string RetrieveRolesByGroupIdDataKey = "RoleHelper-RetrieveRolesByGroupId";
|
||||||
public const string RetrieveRolesByUserNameDataKey = "BootstrapAdminRoleMiddleware-RetrieveRolesByUserName";
|
public const string RetrieveRolesByUserNameDataKey = "RoleHelper-RetrieveRolesByUserName";
|
||||||
public const string RetrieveRolesByUrlDataKey = "BootstrapAdminAuthorizeFilter-RetrieveRolesByUrl";
|
public const string RetrieveRolesByUrlDataKey = "RoleHelper-RetrieveRolesByUrl";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询所有角色
|
/// 查询所有角色
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Bootstrap.DataAccess
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class UserHelper
|
public static class UserHelper
|
||||||
{
|
{
|
||||||
public const string RetrieveUsersDataKey = "BootstrapUser-RetrieveUsers";
|
public const string RetrieveUsersDataKey = "UserHelper-RetrieveUsers";
|
||||||
public const string RetrieveUsersByRoleIdDataKey = "BootstrapUser-RetrieveUsersByRoleId";
|
public const string RetrieveUsersByRoleIdDataKey = "UserHelper-RetrieveUsersByRoleId";
|
||||||
public const string RetrieveUsersByGroupIdDataKey = "BootstrapUser-RetrieveUsersByGroupId";
|
public const string RetrieveUsersByGroupIdDataKey = "UserHelper-RetrieveUsersByGroupId";
|
||||||
public const string RetrieveNewUsersDataKey = "UserHelper-RetrieveNewUsers";
|
public const string RetrieveNewUsersDataKey = "UserHelper-RetrieveNewUsers";
|
||||||
public const string RetrieveUsersByNameDataKey = "BootstrapUser-RetrieveUsersByName";
|
public const string RetrieveUsersByNameDataKey = "BootstrapUser-RetrieveUsersByName";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue