@postgresx/noredis 0.7.1 → 0.7.2

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.
@@ -287,11 +287,13 @@ var PgKvCache = class {
287
287
  WHERE ctid IN (
288
288
  SELECT ctid
289
289
  FROM ${this.quotedTableName}
290
- WHERE expires_at IS NOT NULL AND expires_at <= NOW()
291
- LIMIT $1
290
+ WHERE namespace = $1
291
+ AND expires_at IS NOT NULL
292
+ AND expires_at <= NOW()
293
+ LIMIT $2
292
294
  )
293
295
  RETURNING namespace, key`,
294
- [Math.max(1, Math.floor(limit))]
296
+ [this.namespace, Math.max(1, Math.floor(limit))]
295
297
  );
296
298
  for (const row of rows) {
297
299
  if (row.namespace === this.namespace) this.deleteL1(row.key);
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  PgKvCache,
11
11
  createPgKvCache
12
- } from "./chunk-BD36RDOX.js";
12
+ } from "./chunk-YSQCYFKW.js";
13
13
  import {
14
14
  PgList,
15
15
  createPgList
package/dist/kv-cache.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PgKvCache,
3
3
  createPgKvCache
4
- } from "./chunk-BD36RDOX.js";
4
+ } from "./chunk-YSQCYFKW.js";
5
5
  export {
6
6
  PgKvCache,
7
7
  createPgKvCache
package/dist/kv.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PgKvCache,
3
3
  createPgKvCache
4
- } from "./chunk-BD36RDOX.js";
4
+ } from "./chunk-YSQCYFKW.js";
5
5
  export {
6
6
  PgKvCache,
7
7
  createPgKvCache
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postgresx/noredis",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "PostgreSQL-backed Redis feature replacement toolkit: KV/TTL cache, pub/sub, advisory locks, rate limiting, and pg-boss queues",
5
5
  "type": "module",
6
6
  "license": "MIT",