2020-09-28 20:19:10 +08:00
|
|
|
// token key
|
2021-02-27 19:55:30 +08:00
|
|
|
export const TOKEN_KEY = 'TOKEN__';
|
2020-09-28 20:19:10 +08:00
|
|
|
|
|
|
|
// user info key
|
|
|
|
export const USER_INFO_KEY = 'USER__INFO__';
|
|
|
|
|
|
|
|
// role info key
|
|
|
|
export const ROLES_KEY = 'ROLES__KEY__';
|
|
|
|
|
|
|
|
// project config key
|
|
|
|
export const PROJ_CFG_KEY = 'PROJ__CFG__KEY__';
|
|
|
|
|
|
|
|
// lock info
|
|
|
|
export const LOCK_INFO_KEY = 'LOCK__INFO__KEY__';
|
|
|
|
|
|
|
|
// base global local key
|
|
|
|
export const BASE_LOCAL_CACHE_KEY = 'LOCAL__CACHE__KEY__';
|
|
|
|
|
|
|
|
// base global session key
|
|
|
|
export const BASE_SESSION_CACHE_KEY = 'SESSION__CACHE__KEY__';
|
2020-11-25 21:26:10 +08:00
|
|
|
|
2021-02-27 19:55:30 +08:00
|
|
|
// base global local key
|
|
|
|
export const APP_LOCAL_CACHE_KEY = 'LOCAL__CACHE__KEY__';
|
|
|
|
|
|
|
|
// base global session key
|
|
|
|
export const APP_SESSION_CACHE_KEY = 'SESSION__CACHE__KEY__';
|
|
|
|
|
2020-11-25 21:26:10 +08:00
|
|
|
export enum CacheTypeEnum {
|
|
|
|
SESSION,
|
|
|
|
LOCAL,
|
|
|
|
}
|