@abtnode/db-cache 1.16.47-beta-20250807-110715-19ad6b43 → 1.16.47-beta-20250808-102837-d10f3b40

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
@@ -749,7 +749,7 @@ class LockDBCache extends SingleFlightDBCache {
749
749
  * @param lockName 锁的名称
750
750
  * @returns 如果锁不存在或已过期,返回 true;否则返回 false
751
751
  */
752
- async isExpired(lockName) {
752
+ async hasExpired(lockName) {
753
753
  this.initAdapter();
754
754
  if (!lockName) {
755
755
  return true;
package/dist/index.d.cts CHANGED
@@ -91,7 +91,7 @@ declare class LockDBCache extends SingleFlightDBCache {
91
91
  * @param lockName 锁的名称
92
92
  * @returns 如果锁不存在或已过期,返回 true;否则返回 false
93
93
  */
94
- isExpired(lockName: string): Promise<boolean>;
94
+ hasExpired(lockName: string): Promise<boolean>;
95
95
  /**
96
96
  * 主动释放锁:删除对应的缓存 key
97
97
  *
package/dist/index.d.mts CHANGED
@@ -91,7 +91,7 @@ declare class LockDBCache extends SingleFlightDBCache {
91
91
  * @param lockName 锁的名称
92
92
  * @returns 如果锁不存在或已过期,返回 true;否则返回 false
93
93
  */
94
- isExpired(lockName: string): Promise<boolean>;
94
+ hasExpired(lockName: string): Promise<boolean>;
95
95
  /**
96
96
  * 主动释放锁:删除对应的缓存 key
97
97
  *
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ declare class LockDBCache extends SingleFlightDBCache {
91
91
  * @param lockName 锁的名称
92
92
  * @returns 如果锁不存在或已过期,返回 true;否则返回 false
93
93
  */
94
- isExpired(lockName: string): Promise<boolean>;
94
+ hasExpired(lockName: string): Promise<boolean>;
95
95
  /**
96
96
  * 主动释放锁:删除对应的缓存 key
97
97
  *
package/dist/index.mjs CHANGED
@@ -729,7 +729,7 @@ class LockDBCache extends SingleFlightDBCache {
729
729
  * @param lockName 锁的名称
730
730
  * @returns 如果锁不存在或已过期,返回 true;否则返回 false
731
731
  */
732
- async isExpired(lockName) {
732
+ async hasExpired(lockName) {
733
733
  this.initAdapter();
734
734
  if (!lockName) {
735
735
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/db-cache",
3
- "version": "1.16.47-beta-20250807-110715-19ad6b43",
3
+ "version": "1.16.47-beta-20250808-102837-d10f3b40",
4
4
  "description": "Db cache use redis or sqlite as backend",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -45,5 +45,5 @@
45
45
  "typescript": "^5.6.3",
46
46
  "unbuild": "^2.0.0"
47
47
  },
48
- "gitHead": "639aa367b25d6885e38cba99f73d753b2831393d"
48
+ "gitHead": "545f4b619e4e872f3cb6645aa95a0c22c06b58d0"
49
49
  }