UNPKG
ka-ching
Version:
latest (0.4.2)
0.4.2
0.4.1
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
0.0.0
A caching module for streams
github.com/Floby/node-ka-ching
Floby/node-ka-ching
ka-ching
/
lib
/
lru-options.js
14 lines
(12 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module
.exports = lruOptions;
function
lruOptions
(options)
{ var
max
;
if
(options.memoryCache ===
true
) {
max
=
5
*
1024
*
1024
; //
5
mo }
else
{
max
= options.memoryCache; }
return
{
max
:
max
}; }