null.js
796 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Module dependencies.
*/
var NullCache = module.exports = function() {};
/**
* Set cache item with given `key` to `value`.
*
* @param {String} key
* @param {Object} value
* @api private
*/
NullCache.prototype.set = function(key, value) {};
/**
* Get cache item with given `key`.
*
* @param {String} key
* @return {Object}
* @api private
*/
NullCache.prototype.get = function(key) {};
/**
* Check if cache has given `key`.
*
* @param {String} key
* @return {Boolean}
* @api private
*/
NullCache.prototype.has = function(key) {
return false;
};
/**
* Generate key for the source `str` with `options`.
*
* @param {String} str
* @param {Object} options
* @return {String}
* @api private
*/
NullCache.prototype.key = function(str, options) {
return '';
};