1234567891011121314151617181920212223242526272829303132 |
- export default class Cache {
- private static readonly prefix:string = 'catchadmin_'
-
- static set (key:string, value: any) : void {
- window.localStorage.setItem(Cache.prefix + key, value)
- }
-
- static get (key: string) : any {
- return window.localStorage.getItem(Cache.prefix + key)
- }
-
- static del (key: string) : void {
- window.localStorage.removeItem(Cache.prefix + key)
- }
- }
|