@abtnode/db-cache 1.16.47-beta-20250807-110715-19ad6b43 → 1.16.47
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 +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
3
|
+
"version": "1.16.47",
|
|
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": "
|
|
48
|
+
"gitHead": "02eecfdabe8acf7a10b0cc897958667777d64f79"
|
|
49
49
|
}
|