# 获取所有缓存key值
# getAllKeys
- 示例代码:
<template>
<div class="wrapper">
<text @click="cacheHandler">getAllKeys: 获取所有缓存key值</text>
</div>
</template>
<script>
export default {
data:()=> ({
name: 'getAllKeys',
}),
methods: {
cacheHandler() {
//获取所有缓存key值
this
.$storage
.getAllKeys()
.then((res)=> {
this.$toast(res)
})
}
}
}
</script>
<style scoped>
.wrapper{
background-color: #ffffff;
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28