Commit 31d46f2
committed
fix: VipCache.has() now checks TTL expiry to match get() behavior
Previously has() returned true for expired entries since it only checked
map.has(). Now checks expiresAt and cleans up expired entries with
refCount=0, consistent with get() and acquire().1 parent 8878092 commit 31d46f2
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
0 commit comments