abler-api 0.1.64 → 0.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1808,7 +1808,9 @@ async function initKvStorage(dbSql) {
1808
1808
  try {
1809
1809
  kvStorage.config(conf$2, err$1);
1810
1810
 
1811
- if (!conf$2.redis.enabled) {
1811
+ if (conf$2.redis.enabled) {
1812
+ kvStorage.setRedis(ppRedis.newClient("kv"));
1813
+ } else {
1812
1814
  kvStorage.setRedis(new redisSimulator(dbSql));
1813
1815
  }
1814
1816
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",