UNPKG
nyx_server
Version:
latest (0.10.23)
0.10.23
0.10.22
0.10.21
0.10.17
0.10.15
0.10.14
0.10.13
0.10.12
0.10.11
0.10.10
0.10.8
0.10.7
0.10.5
0.10.4
0.10.3
0.10.1
0.10.0
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.8.5
0.8.4
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.5.0
0.4.0
0.0.3
0.0.2
0.0.1
Node内容发布
nyx_server
/
core
/
Cache.js
11 lines
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
function
CatchManager
(
){
this
.
cache
= {}; }
CatchManager
.
prototype
.
clear
=
function
(
){
console
.
log
(
"清空缓存"
);
var
self =
this
;
Object
.
keys
(
this
.
cache
).
forEach
(
function
(
key
){
delete
self.
cache
[key]; }); };
module
.
exports
=
new
CatchManager
();