complete redesign: use nodejs on server instead of php - documentation to be updated
This commit is contained in:
50
nodejs/node_modules/stylus/lib/cache/null.js
generated
vendored
Normal file
50
nodejs/node_modules/stylus/lib/cache/null.js
generated
vendored
Normal file
@@ -0,0 +1,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 '';
|
||||
};
|
Reference in New Issue
Block a user