Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
796 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * Module dependencies.
|
---|
3 | */
|
---|
4 |
|
---|
5 | var NullCache = module.exports = function() {};
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Set cache item with given `key` to `value`.
|
---|
9 | *
|
---|
10 | * @param {String} key
|
---|
11 | * @param {Object} value
|
---|
12 | * @api private
|
---|
13 | */
|
---|
14 |
|
---|
15 | NullCache.prototype.set = function(key, value) {};
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Get cache item with given `key`.
|
---|
19 | *
|
---|
20 | * @param {String} key
|
---|
21 | * @return {Object}
|
---|
22 | * @api private
|
---|
23 | */
|
---|
24 |
|
---|
25 | NullCache.prototype.get = function(key) {};
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Check if cache has given `key`.
|
---|
29 | *
|
---|
30 | * @param {String} key
|
---|
31 | * @return {Boolean}
|
---|
32 | * @api private
|
---|
33 | */
|
---|
34 |
|
---|
35 | NullCache.prototype.has = function(key) {
|
---|
36 | return false;
|
---|
37 | };
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Generate key for the source `str` with `options`.
|
---|
41 | *
|
---|
42 | * @param {String} str
|
---|
43 | * @param {Object} options
|
---|
44 | * @return {String}
|
---|
45 | * @api private
|
---|
46 | */
|
---|
47 |
|
---|
48 | NullCache.prototype.key = function(str, options) {
|
---|
49 | return '';
|
---|
50 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.