2020-01-12 19:15:08 +08:00
|
|
|
/**
|
|
|
|
|
* Created by strawmanbobi
|
|
|
|
|
* 2014-12-01.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-10-20 19:24:01 +08:00
|
|
|
let BaseCache = function(_cacheType, _host, _port, _user, _password) {
|
2020-01-12 19:15:08 +08:00
|
|
|
throw new Error("Abstract class");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BaseCache.prototype.set = function(key, value, ttl, callback) {
|
|
|
|
|
throw new Error("Could not implemented");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BaseCache.prototype.get = function(key, callback) {
|
|
|
|
|
throw new Error("Could not implemented");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BaseCache.prototype.delete = function(key, callback) {
|
|
|
|
|
throw new Error("Could not implemented");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = BaseCache;
|