mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
add wrap method for redis cache
This commit is contained in:
parent
9dfe473f5b
commit
b0a12e04a5
8
src/adapter/cache/redis.js
vendored
8
src/adapter/cache/redis.js
vendored
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user