@abtnode/db-cache 1.16.45-beta-20250610-112229-2eb0face → 1.16.45-beta-20250614-101901-d1700f8d

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/index.cjs CHANGED
@@ -822,10 +822,14 @@ const isJestTest = () => {
822
822
  return process.env.NODE_ENV === "test" || process.env.BABEL_ENV === "test" || typeof jest !== "undefined";
823
823
  };
824
824
  const getAbtNodeRedisAndSQLiteUrl = () => {
825
- return {
825
+ const params = {
826
826
  redisUrl: process.env.ABT_NODE_CACHE_REDIS_URL,
827
827
  sqlitePath: isJestTest() ? "test.db" : process.env.ABT_NODE_CACHE_SQLITE_PATH
828
828
  };
829
+ if (process.env.ABT_NODE_NO_CACHE === "true") {
830
+ params.ttl = 1;
831
+ }
832
+ return params;
829
833
  };
830
834
 
831
835
  exports.DBCache = LockDBCache;
package/dist/index.mjs CHANGED
@@ -802,10 +802,14 @@ const isJestTest = () => {
802
802
  return process.env.NODE_ENV === "test" || process.env.BABEL_ENV === "test" || typeof jest !== "undefined";
803
803
  };
804
804
  const getAbtNodeRedisAndSQLiteUrl = () => {
805
- return {
805
+ const params = {
806
806
  redisUrl: process.env.ABT_NODE_CACHE_REDIS_URL,
807
807
  sqlitePath: isJestTest() ? "test.db" : process.env.ABT_NODE_CACHE_SQLITE_PATH
808
808
  };
809
+ if (process.env.ABT_NODE_NO_CACHE === "true") {
810
+ params.ttl = 1;
811
+ }
812
+ return params;
809
813
  };
810
814
 
811
815
  export { LockDBCache as DBCache, getAbtNodeRedisAndSQLiteUrl };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/db-cache",
3
- "version": "1.16.45-beta-20250610-112229-2eb0face",
3
+ "version": "1.16.45-beta-20250614-101901-d1700f8d",
4
4
  "description": "Db cache use redis or sqlite as backend",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -44,5 +44,5 @@
44
44
  "typescript": "^5.6.3",
45
45
  "unbuild": "^2.0.0"
46
46
  },
47
- "gitHead": "d35fb6c907c29f4466fa965c079e1662dc77e582"
47
+ "gitHead": "5fb4c294b2754d660fa946ac85c962edb2deaad2"
48
48
  }