Showing
1 changed file
with
2 additions
and
0 deletions
@@ -5,10 +5,12 @@ store.addPlugin(expirePlugin); | @@ -5,10 +5,12 @@ store.addPlugin(expirePlugin); | ||
5 | 5 | ||
6 | module.exports = { | 6 | module.exports = { |
7 | get: (...params) => { | 7 | get: (...params) => { |
8 | + store.enabled = false; // 暂时屏蔽 | ||
8 | return store.enabled ? store.get(...params) : false; | 9 | return store.enabled ? store.get(...params) : false; |
9 | }, | 10 | }, |
10 | 11 | ||
11 | set: (...params) => { | 12 | set: (...params) => { |
13 | + store.enabled = false; // 暂时屏蔽 | ||
12 | return store.enabled ? store.set(...params, new Date().getTime() + 180000) : false; | 14 | return store.enabled ? store.set(...params, new Date().getTime() + 180000) : false; |
13 | } | 15 | } |
14 | }; | 16 | }; |
-
Please register or login to post a comment