UNPKG
@farris/bef-vue
Version:
latest (0.0.5-ba-beta.1)
0.0.5
0.0.5-ba-beta.1
0.0.4
0.0.3
0.0.2
farris-design.gitee.io/farris-vue/
@farris/bef-vue
/
types
/
session
/
storage-strategies
/
types.d.ts
12 lines
(11 loc)
•
262 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * 缓存策略 */
interface
StorageStrategy
{
getItem
(
key
:
string
):
string
;
setItem
(
key
:
string
,
value
:
string
):
void
;
removeItem
(
key
:
string
):
void
;
removeItemsByScope
(
scope
:
string
):
void
;
clear
():
void
; } export { StorageStrategy };