add wrap method for redis cache

This commit is contained in:
lichengyin 2016-01-09 14:30:50 +08:00
parent 9dfe473f5b
commit b0a12e04a5

View File

@ -73,8 +73,8 @@ export default class extends think.adapter.base {
* @param {...[type]} data []
* @return {[type]} []
*/
// wrap(command, name, ...data){
// let instance = this.getRedisInstance(command);
// return instance.wrap(command, this.prefix + name, ...data);
// }
wrap(command, name, ...data){
let instance = this.getRedisInstance(command);
return instance.wrap(command, this.prefix + name, ...data);
}
}