@tugou/cache
Advanced tools
@@ -14,6 +14,7 @@ "use strict"; | ||
| const decorator_1 = require("@midwayjs/decorator"); | ||
| const cache = require("@midwayjs/cache"); | ||
| const path_1 = require("path"); | ||
| let CacheConfiguration = class CacheConfiguration { | ||
| async onReady(container) { | ||
| console.info('[cache] ', this.config); | ||
| console.info('[cache] ', JSON.stringify(this.config)); | ||
| try { | ||
@@ -41,2 +42,5 @@ console.info('[cache] success.'); | ||
| namespace: 'cache', | ||
| imports: [ | ||
| cache // 导入 cache 组件 | ||
| ], | ||
| importConfigs: [path_1.join(__dirname, 'config')] | ||
@@ -43,0 +47,0 @@ }) |
+3
-2
| { | ||
| "name": "@tugou/cache", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "tugou midwayjs cache", | ||
@@ -19,2 +19,3 @@ "main": "dist/index", | ||
| "dependencies": { | ||
| "@midwayjs/cache": "^2.9.2", | ||
| "cache-manager-ioredis": "^2.1.0" | ||
@@ -28,3 +29,3 @@ }, | ||
| "license": "MIT", | ||
| "gitHead": "8b9f995d9d16d9ad48da02273d7dca82fe82127d" | ||
| "gitHead": "20aec6aff8c5f85d812ebfac85ed160ee4724f84" | ||
| } |
3393
5.01%70
6.06%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added