2020-11-23 23:24:13 +08:00
|
|
|
import { isDevMode } from '/@/utils/env';
|
|
|
|
|
|
|
|
|
|
// System default cache time, in seconds
|
|
|
|
|
export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;
|
|
|
|
|
|
|
|
|
|
// aes encryption key
|
|
|
|
|
export const cacheCipher = {
|
2021-01-06 20:10:16 +08:00
|
|
|
key: '_11111000001111@',
|
|
|
|
|
iv: '@11111000001111_',
|
2020-11-23 23:24:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Whether the system cache is encrypted using aes
|
|
|
|
|
export const enableStorageEncryption = !isDevMode();
|