Files
blog/node_modules/stylus/lib/cache/null.js
2025-07-16 16:30:56 +00:00

51 lines
736 B
JavaScript

/**
* Module dependencies.
*/
module.exports = class NullCache {
/**
* Set cache item with given `key` to `value`.
*
* @param {String} key
* @param {Object} value
* @api private
*/
set(key, value) { };
/**
* Get cache item with given `key`.
*
* @param {String} key
* @return {Object}
* @api private
*/
get(key) { };
/**
* Check if cache has given `key`.
*
* @param {String} key
* @return {Boolean}
* @api private
*/
has(key) {
return false;
};
/**
* Generate key for the source `str` with `options`.
*
* @param {String} str
* @param {Object} options
* @return {String}
* @api private
*/
key(str, options) {
return '';
};
}