@okf/ootils 1.8.4 → 1.8.5

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.
package/dist/node.js CHANGED
@@ -2120,14 +2120,19 @@ var RedisCacheConnector = class _RedisCacheConnector {
2120
2120
  type,
2121
2121
  env
2122
2122
  });
2123
- await client.del(cacheKey);
2123
+ const delResult = await client.del(cacheKey);
2124
+ let setResult;
2124
2125
  if (newVal) {
2125
2126
  try {
2126
- await client.set(cacheKey, JSON.stringify(newVal));
2127
+ setResult = await client.set(cacheKey, JSON.stringify(newVal));
2127
2128
  } catch (err) {
2128
2129
  console.log("invalidateCache - Cache set failed: ", err);
2129
2130
  }
2130
2131
  }
2132
+ return {
2133
+ delResult,
2134
+ setResult
2135
+ };
2131
2136
  }
2132
2137
  /**
2133
2138
  * Load all collections and templates into Redis cache for all tenants
package/dist/node.mjs CHANGED
@@ -2090,14 +2090,19 @@ var RedisCacheConnector = class _RedisCacheConnector {
2090
2090
  type,
2091
2091
  env
2092
2092
  });
2093
- await client.del(cacheKey);
2093
+ const delResult = await client.del(cacheKey);
2094
+ let setResult;
2094
2095
  if (newVal) {
2095
2096
  try {
2096
- await client.set(cacheKey, JSON.stringify(newVal));
2097
+ setResult = await client.set(cacheKey, JSON.stringify(newVal));
2097
2098
  } catch (err) {
2098
2099
  console.log("invalidateCache - Cache set failed: ", err);
2099
2100
  }
2100
2101
  }
2102
+ return {
2103
+ delResult,
2104
+ setResult
2105
+ };
2101
2106
  }
2102
2107
  /**
2103
2108
  * Load all collections and templates into Redis cache for all tenants
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.4",
6
+ "version": "1.8.5",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",