You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: main.js
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,15 @@ function atLeastOne(val) {
16
16
returnMath.max(1,val);
17
17
}
18
18
19
+
functionparseKeyValues(val){
20
+
letobj={};
21
+
val.split(',').forEach(function(kv){
22
+
letpair=kv.split(':');
23
+
obj[pair[0]]=pair[1];
24
+
});
25
+
returnobj;
26
+
}
27
+
19
28
program.description("Unity Cache Server")
20
29
.version(consts.VERSION)
21
30
.option('-s, --size <n>','Specify the maximum allowed size of the LRU cache. Files that have not been used recently will automatically be discarded when the cache size is exceeded. Default is 50Gb',myParseInt,consts.DEFAULT_CACHE_SIZE)
0 commit comments