@warlock.js/cache 5.31.0 → 5.32.0
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/CHANGELOG.md +6 -0
- package/cjs/index.cjs +4 -4
- package/cjs/index.cjs.map +1 -1
- package/esm/cache-manager.d.mts +2 -4
- package/esm/cache-manager.d.mts.map +1 -1
- package/esm/cached/auto-key.d.mts +1 -2
- package/esm/cached/auto-key.d.mts.map +1 -1
- package/esm/cached/cached.d.mts +4 -6
- package/esm/cached/cached.d.mts.map +1 -1
- package/esm/cached/index.d.mts +2 -1
- package/esm/cached/index.mjs +1 -1
- package/esm/cached/normalize-args.d.mts +3 -5
- package/esm/cached/normalize-args.d.mts.map +1 -1
- package/esm/drivers/base-cache-driver.d.mts +2 -4
- package/esm/drivers/base-cache-driver.d.mts.map +1 -1
- package/esm/drivers/file-cache-driver.d.mts +1 -3
- package/esm/drivers/file-cache-driver.d.mts.map +1 -1
- package/esm/drivers/in-memory-tag-index.d.mts +1 -2
- package/esm/drivers/in-memory-tag-index.d.mts.map +1 -1
- package/esm/drivers/index.d.mts +2 -1
- package/esm/drivers/index.mjs +1 -1
- package/esm/drivers/lru-memory-cache-driver.d.mts +2 -3
- package/esm/drivers/lru-memory-cache-driver.d.mts.map +1 -1
- package/esm/drivers/memory-cache-driver.d.mts +1 -3
- package/esm/drivers/memory-cache-driver.d.mts.map +1 -1
- package/esm/drivers/memory-extended-cache-driver.d.mts +1 -3
- package/esm/drivers/memory-extended-cache-driver.d.mts.map +1 -1
- package/esm/drivers/mock-cache-driver.d.mts +1 -3
- package/esm/drivers/mock-cache-driver.d.mts.map +1 -1
- package/esm/drivers/null-cache-driver.d.mts +1 -3
- package/esm/drivers/null-cache-driver.d.mts.map +1 -1
- package/esm/drivers/pg-cache-driver.d.mts +1 -3
- package/esm/drivers/pg-cache-driver.d.mts.map +1 -1
- package/esm/drivers/redis-cache-driver.d.mts +5 -7
- package/esm/drivers/redis-cache-driver.d.mts.map +1 -1
- package/esm/index.d.mts +3 -0
- package/esm/list/index.d.mts +2 -1
- package/esm/list/memory-cache-list.d.mts +1 -3
- package/esm/list/memory-cache-list.d.mts.map +1 -1
- package/esm/metrics.d.mts +4 -4
- package/esm/metrics.d.mts.map +1 -1
- package/esm/metrics.mjs +2 -2
- package/esm/metrics.mjs.map +1 -1
- package/esm/scoped-cache.d.mts +1 -3
- package/esm/scoped-cache.d.mts.map +1 -1
- package/esm/tagged-cache.d.mts +1 -3
- package/esm/tagged-cache.d.mts.map +1 -1
- package/esm/tagged-cache.mjs +1 -1
- package/esm/tagged-cache.mjs.map +1 -1
- package/esm/tagged-scoped-cache.d.mts +1 -3
- package/esm/tagged-scoped-cache.d.mts.map +1 -1
- package/esm/types.d.mts +70 -57
- package/esm/types.d.mts.map +1 -1
- package/esm/utils.d.mts +12 -14
- package/esm/utils.d.mts.map +1 -1
- package/package.json +3 -3
package/esm/types.d.mts
CHANGED
|
@@ -7,32 +7,32 @@ import { MockCacheDriver } from "./drivers/mock-cache-driver.mjs";
|
|
|
7
7
|
import { NullCacheDriver } from "./drivers/null-cache-driver.mjs";
|
|
8
8
|
import { PgCacheDriver } from "./drivers/pg-cache-driver.mjs";
|
|
9
9
|
import { RedisCacheDriver } from "./drivers/redis-cache-driver.mjs";
|
|
10
|
+
import "./drivers/index.mjs";
|
|
10
11
|
import { GenericObject } from "@mongez/reinforcements";
|
|
11
12
|
import { RedisClientOptions } from "redis";
|
|
12
|
-
|
|
13
13
|
//#region ../../packages/cache/src/types.d.ts
|
|
14
14
|
/**
|
|
15
15
|
* Base error class for cache-related errors
|
|
16
16
|
*/
|
|
17
|
-
declare class CacheError extends Error {
|
|
17
|
+
export declare class CacheError extends Error {
|
|
18
18
|
constructor(message: string);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Error thrown when cache connection fails
|
|
22
22
|
*/
|
|
23
|
-
declare class CacheConnectionError extends CacheError {
|
|
23
|
+
export declare class CacheConnectionError extends CacheError {
|
|
24
24
|
constructor(message: string);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Error thrown when cache driver configuration is invalid
|
|
28
28
|
*/
|
|
29
|
-
declare class CacheConfigurationError extends CacheError {
|
|
29
|
+
export declare class CacheConfigurationError extends CacheError {
|
|
30
30
|
constructor(message: string);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Error thrown when cache driver is not initialized
|
|
34
34
|
*/
|
|
35
|
-
declare class CacheDriverNotInitializedError extends CacheError {
|
|
35
|
+
export declare class CacheDriverNotInitializedError extends CacheError {
|
|
36
36
|
constructor(message?: string);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -41,13 +41,13 @@ declare class CacheDriverNotInitializedError extends CacheError {
|
|
|
41
41
|
* Raised when a caller invokes a method the driver cannot fulfill —
|
|
42
42
|
* e.g. `update()` on the file driver before the file-lock primitive lands.
|
|
43
43
|
*/
|
|
44
|
-
declare class CacheUnsupportedError extends CacheError {
|
|
44
|
+
export declare class CacheUnsupportedError extends CacheError {
|
|
45
45
|
constructor(message: string);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Error thrown when an optimistic-concurrency update exhausts its retry budget.
|
|
49
49
|
*/
|
|
50
|
-
declare class CacheConcurrencyError extends CacheError {
|
|
50
|
+
export declare class CacheConcurrencyError extends CacheError {
|
|
51
51
|
constructor(message: string);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -57,7 +57,7 @@ declare class CacheConcurrencyError extends CacheError {
|
|
|
57
57
|
* - `string` — human-readable duration parsed via `ms` (`"1h"`, `"30m"`, `"7d"`, `"2 weeks"`, …)
|
|
58
58
|
* - `Infinity` — no expiration
|
|
59
59
|
*/
|
|
60
|
-
type CacheTtl = number | string;
|
|
60
|
+
export type CacheTtl = number | string;
|
|
61
61
|
/**
|
|
62
62
|
* Conflict resolution policy for `set` operations.
|
|
63
63
|
*
|
|
@@ -65,11 +65,11 @@ type CacheTtl = number | string;
|
|
|
65
65
|
* - `"update"` — set only if the key already exists (Redis `XX`)
|
|
66
66
|
* - `"upsert"` — default; overwrite whether the key exists or not
|
|
67
67
|
*/
|
|
68
|
-
type CacheConflictPolicy = "create" | "update" | "upsert";
|
|
68
|
+
export type CacheConflictPolicy = "create" | "update" | "upsert";
|
|
69
69
|
/**
|
|
70
70
|
* Result of a conditional write (`onConflict: "create" | "update"`).
|
|
71
71
|
*/
|
|
72
|
-
type CacheSetResult<T = any> = {
|
|
72
|
+
export type CacheSetResult<T = any> = {
|
|
73
73
|
/**
|
|
74
74
|
* Whether the write actually took effect.
|
|
75
75
|
*/
|
|
@@ -90,7 +90,7 @@ type CacheSetResult<T = any> = {
|
|
|
90
90
|
* await runImport();
|
|
91
91
|
* });
|
|
92
92
|
*/
|
|
93
|
-
type LockOptions = {
|
|
93
|
+
export type LockOptions = {
|
|
94
94
|
/**
|
|
95
95
|
* How long the lock lives before auto-release. Required — guards against
|
|
96
96
|
* forgotten locks if the process crashes between acquire and release.
|
|
@@ -119,7 +119,7 @@ type LockOptions = {
|
|
|
119
119
|
* console.log("skipped — someone else holds the lock");
|
|
120
120
|
* }
|
|
121
121
|
*/
|
|
122
|
-
type LockOutcome<T> = {
|
|
122
|
+
export type LockOutcome<T> = {
|
|
123
123
|
acquired: true;
|
|
124
124
|
value: T;
|
|
125
125
|
} | {
|
|
@@ -136,7 +136,7 @@ type LockOutcome<T> = {
|
|
|
136
136
|
* db.users.find(1),
|
|
137
137
|
* );
|
|
138
138
|
*/
|
|
139
|
-
type RememberOptions = {
|
|
139
|
+
export type RememberOptions = {
|
|
140
140
|
/**
|
|
141
141
|
* TTL applied on cache miss. Accepts seconds (number) or duration string.
|
|
142
142
|
*/
|
|
@@ -161,7 +161,7 @@ type RememberOptions = {
|
|
|
161
161
|
* onConflict: "create",
|
|
162
162
|
* });
|
|
163
163
|
*/
|
|
164
|
-
type CacheSetOptions = {
|
|
164
|
+
export type CacheSetOptions = {
|
|
165
165
|
/**
|
|
166
166
|
* Relative TTL (seconds or duration string). Mutually exclusive with `expiresAt`.
|
|
167
167
|
*/
|
|
@@ -219,7 +219,7 @@ type CacheSetOptions = {
|
|
|
219
219
|
* (scope tags + call tags, deduped). Nested scopes inherit from the parent;
|
|
220
220
|
* the child's own values override.
|
|
221
221
|
*/
|
|
222
|
-
type CacheNamespaceOptions = {
|
|
222
|
+
export type CacheNamespaceOptions = {
|
|
223
223
|
/**
|
|
224
224
|
* Default TTL for writes inside this scope. Same shape as everywhere else
|
|
225
225
|
* — number of seconds or a duration string (`"1h"`, `"30d"`, …).
|
|
@@ -251,7 +251,7 @@ type CacheNamespaceOptions = {
|
|
|
251
251
|
* error is logged + emitted on the `error` event. Callers that received
|
|
252
252
|
* the stale value never see the failure — they got their data.
|
|
253
253
|
*/
|
|
254
|
-
type CacheSwrOptions = {
|
|
254
|
+
export type CacheSwrOptions = {
|
|
255
255
|
/**
|
|
256
256
|
* How long the value is considered fresh. Within this window, SWR returns
|
|
257
257
|
* the cached value with no upstream call. Accepts seconds or duration
|
|
@@ -280,7 +280,7 @@ type CacheSwrOptions = {
|
|
|
280
280
|
* Options for `cache.similar(vector, options)` — similarity retrieval against
|
|
281
281
|
* stored entries previously written with `set({ vector })`.
|
|
282
282
|
*/
|
|
283
|
-
type CacheSimilarOptions = {
|
|
283
|
+
export type CacheSimilarOptions = {
|
|
284
284
|
/**
|
|
285
285
|
* Maximum number of hits to return. Required — no implicit default keeps
|
|
286
286
|
* callers from accidentally pulling the entire candidate set.
|
|
@@ -301,7 +301,7 @@ type CacheSimilarOptions = {
|
|
|
301
301
|
* One result from a `similar()` query — the original key, its stored value,
|
|
302
302
|
* and the cosine similarity to the query vector.
|
|
303
303
|
*/
|
|
304
|
-
type CacheSimilarHit<T = unknown> = {
|
|
304
|
+
export type CacheSimilarHit<T = unknown> = {
|
|
305
305
|
/**
|
|
306
306
|
* The original cache key, post-`parseKey` normalization.
|
|
307
307
|
*/
|
|
@@ -319,16 +319,16 @@ type CacheSimilarHit<T = unknown> = {
|
|
|
319
319
|
/**
|
|
320
320
|
* Cache key type - can be a string or an object
|
|
321
321
|
*/
|
|
322
|
-
type CacheKey = string | GenericObject;
|
|
323
|
-
type CacheOperationType = "fetching" | "fetched" | "caching" | "cached" | "flushing" | "flushed" | "removing" | "removed" | "clearing" | "cleared" | "expired" | "notFound" | "connecting" | "error" | "connectionFailed" | "connected" | "disconnecting" | "disconnected";
|
|
322
|
+
export type CacheKey = string | GenericObject;
|
|
323
|
+
export type CacheOperationType = "fetching" | "fetched" | "caching" | "cached" | "flushing" | "flushed" | "removing" | "removed" | "clearing" | "cleared" | "expired" | "notFound" | "connecting" | "error" | "connectionFailed" | "connected" | "disconnecting" | "disconnected";
|
|
324
324
|
/**
|
|
325
325
|
* Cache event types for observability
|
|
326
326
|
*/
|
|
327
|
-
type CacheEventType = "hit" | "miss" | "set" | "removed" | "invalidated" | "flushed" | "expired" | "connected" | "disconnected" | "error";
|
|
327
|
+
export type CacheEventType = "hit" | "miss" | "set" | "removed" | "invalidated" | "flushed" | "expired" | "connected" | "disconnected" | "error";
|
|
328
328
|
/**
|
|
329
329
|
* Cache event data structure
|
|
330
330
|
*/
|
|
331
|
-
type CacheEventData = {
|
|
331
|
+
export type CacheEventData = {
|
|
332
332
|
/**
|
|
333
333
|
* The cache key involved in the event
|
|
334
334
|
*/
|
|
@@ -352,15 +352,18 @@ type CacheEventData = {
|
|
|
352
352
|
/**
|
|
353
353
|
* Namespace (for namespace operations)
|
|
354
354
|
*/
|
|
355
|
-
namespace?: string;
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
namespace?: string;
|
|
356
|
+
/** Tags passed to `tags([...]).invalidate()` (`invalidated` events only). */
|
|
357
|
+
tags?: string[];
|
|
358
|
+
/** Keys a tag invalidation removed (`invalidated` events only). */
|
|
359
|
+
keys?: string[];
|
|
360
|
+
/** How long the operation took, in milliseconds (`invalidated` events only). */
|
|
358
361
|
durationMs?: number;
|
|
359
362
|
};
|
|
360
363
|
/**
|
|
361
364
|
* Event handler function type
|
|
362
365
|
*/
|
|
363
|
-
type CacheEventHandler = (eventData: CacheEventData) => void | Promise<void>;
|
|
366
|
+
export type CacheEventHandler = (eventData: CacheEventData) => void | Promise<void>;
|
|
364
367
|
/**
|
|
365
368
|
* Per-operation latency + counter snapshot returned by `cache.metrics()`.
|
|
366
369
|
*
|
|
@@ -369,26 +372,36 @@ type CacheEventHandler = (eventData: CacheEventData) => void | Promise<void>;
|
|
|
369
372
|
* further. Use this for ad-hoc dashboards, exporters to Prometheus / StatsD,
|
|
370
373
|
* or just `console.log` during development.
|
|
371
374
|
*/
|
|
372
|
-
type CacheMetricsSnapshot = {
|
|
373
|
-
/** Cumulative cache hits across the lifetime of the collector. */
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
export type CacheMetricsSnapshot = {
|
|
376
|
+
/** Cumulative cache hits across the lifetime of the collector. */
|
|
377
|
+
hits: number;
|
|
378
|
+
/** Cumulative cache misses (lookups that returned null). */
|
|
379
|
+
misses: number;
|
|
380
|
+
/** Cumulative successful writes. */
|
|
381
|
+
sets: number;
|
|
382
|
+
/** Cumulative key removals. */
|
|
383
|
+
removed: number;
|
|
384
|
+
/** Cumulative cache errors emitted via the `error` event. */
|
|
385
|
+
errors: number;
|
|
386
|
+
/** `hits / (hits + misses)` — `0` when no read ops have happened yet. */
|
|
387
|
+
hitRate: number;
|
|
388
|
+
/** Latency percentiles in milliseconds, computed from a circular buffer. */
|
|
379
389
|
latencyMs: {
|
|
380
390
|
p50: number;
|
|
381
391
|
p95: number;
|
|
382
|
-
p99: number;
|
|
392
|
+
p99: number;
|
|
393
|
+
/** Size of the underlying buffer at snapshot time (capped at the configured max). */
|
|
383
394
|
samples: number;
|
|
384
|
-
};
|
|
385
|
-
|
|
395
|
+
};
|
|
396
|
+
/** Per-driver breakdowns keyed by driver name (`"memory"`, `"redis"`, …). */
|
|
397
|
+
byDriver: Record<string, Omit<CacheMetricsSnapshot, "byDriver">>;
|
|
398
|
+
/** Millisecond timestamp the collector last reset (or was instantiated). */
|
|
386
399
|
startedAt: number;
|
|
387
400
|
};
|
|
388
401
|
/**
|
|
389
402
|
* Tagged cache interface for working with cache tags
|
|
390
403
|
*/
|
|
391
|
-
interface TaggedCacheDriver {
|
|
404
|
+
export interface TaggedCacheDriver {
|
|
392
405
|
/**
|
|
393
406
|
* Set a value in cache with tags
|
|
394
407
|
*/
|
|
@@ -437,7 +450,7 @@ interface TaggedCacheDriver {
|
|
|
437
450
|
*/
|
|
438
451
|
decrement(key: CacheKey, value?: number): Promise<number>;
|
|
439
452
|
}
|
|
440
|
-
type MemoryCacheOptions = {
|
|
453
|
+
export type MemoryCacheOptions = {
|
|
441
454
|
/**
|
|
442
455
|
* The global prefix for the cache key
|
|
443
456
|
*/
|
|
@@ -457,8 +470,8 @@ type MemoryCacheOptions = {
|
|
|
457
470
|
*/
|
|
458
471
|
maxSize?: number;
|
|
459
472
|
};
|
|
460
|
-
type MemoryExtendedCacheOptions = MemoryCacheOptions;
|
|
461
|
-
type LRUMemoryCacheOptions = {
|
|
473
|
+
export type MemoryExtendedCacheOptions = MemoryCacheOptions;
|
|
474
|
+
export type LRUMemoryCacheOptions = {
|
|
462
475
|
/**
|
|
463
476
|
* The maximum number of items in the cache
|
|
464
477
|
*
|
|
@@ -478,7 +491,7 @@ type LRUMemoryCacheOptions = {
|
|
|
478
491
|
*/
|
|
479
492
|
ttl?: CacheTtl;
|
|
480
493
|
};
|
|
481
|
-
type FileCacheOptions = {
|
|
494
|
+
export type FileCacheOptions = {
|
|
482
495
|
/**
|
|
483
496
|
* The global prefix for the cache key
|
|
484
497
|
*/
|
|
@@ -503,7 +516,7 @@ type FileCacheOptions = {
|
|
|
503
516
|
*/
|
|
504
517
|
fileName?: string | (() => string);
|
|
505
518
|
};
|
|
506
|
-
type RedisOptions = {
|
|
519
|
+
export type RedisOptions = {
|
|
507
520
|
/**
|
|
508
521
|
* Redis Port
|
|
509
522
|
*
|
|
@@ -544,13 +557,13 @@ type RedisOptions = {
|
|
|
544
557
|
*/
|
|
545
558
|
clientOptions?: RedisClientOptions;
|
|
546
559
|
};
|
|
547
|
-
type NullCacheDriverOptions = GenericObject;
|
|
560
|
+
export type NullCacheDriverOptions = GenericObject;
|
|
548
561
|
/**
|
|
549
562
|
* Options accepted by {@link MockCacheDriver}. Same shape as the memory
|
|
550
563
|
* driver — only `globalPrefix` and `ttl` apply, since the mock's storage is
|
|
551
564
|
* a plain `Map` with no eviction policy.
|
|
552
565
|
*/
|
|
553
|
-
type MockCacheOptions = {
|
|
566
|
+
export type MockCacheOptions = {
|
|
554
567
|
/**
|
|
555
568
|
* Global key prefix, applied via `parseKey` (matches the other drivers).
|
|
556
569
|
*/
|
|
@@ -567,7 +580,7 @@ type MockCacheOptions = {
|
|
|
567
580
|
* the driver received in arrival order. Useful for behavioral assertions
|
|
568
581
|
* in downstream tests ("did my service actually invalidate the cache?").
|
|
569
582
|
*/
|
|
570
|
-
type CacheCall = {
|
|
583
|
+
export type CacheCall = {
|
|
571
584
|
/**
|
|
572
585
|
* Operation name as it appears on the driver contract — `"set"`, `"get"`,
|
|
573
586
|
* `"remove"`, `"flush"`, `"removeNamespace"`, `"has"`, etc.
|
|
@@ -597,13 +610,13 @@ type CacheCall = {
|
|
|
597
610
|
* `pg` strictly optional: consumers without the `pg` package installed
|
|
598
611
|
* never hit a missing import.
|
|
599
612
|
*/
|
|
600
|
-
type PgClientLike = {
|
|
613
|
+
export type PgClientLike = {
|
|
601
614
|
query(text: string, values?: unknown[]): Promise<{
|
|
602
615
|
rows: any[];
|
|
603
616
|
rowCount?: number | null;
|
|
604
617
|
}>;
|
|
605
618
|
};
|
|
606
|
-
type PgCacheOptions = {
|
|
619
|
+
export type PgCacheOptions = {
|
|
607
620
|
/**
|
|
608
621
|
* User-supplied `pg.Pool` or `pg.Client`. The driver does NOT own the
|
|
609
622
|
* connection lifecycle — `cache.disconnect()` will not close this client.
|
|
@@ -654,7 +667,7 @@ type PgCacheOptions = {
|
|
|
654
667
|
index?: "hnsw" | "ivfflat";
|
|
655
668
|
};
|
|
656
669
|
};
|
|
657
|
-
interface CacheDriver<ClientType, Options> {
|
|
670
|
+
export interface CacheDriver<ClientType, Options> {
|
|
658
671
|
/**
|
|
659
672
|
* The cache driver options
|
|
660
673
|
*/
|
|
@@ -930,7 +943,7 @@ interface CacheDriver<ClientType, Options> {
|
|
|
930
943
|
* Defaults to read-mutate-write semantics on non-native drivers (memory, file, LRU).
|
|
931
944
|
* The Redis driver overrides this with native `LPUSH` / `RPUSH` / `LRANGE` / `LTRIM` for O(1) ops.
|
|
932
945
|
*/
|
|
933
|
-
interface CacheListAccessor<T = any> {
|
|
946
|
+
export interface CacheListAccessor<T = any> {
|
|
934
947
|
/**
|
|
935
948
|
* Append one or more items to the tail of the list. Returns the new length.
|
|
936
949
|
*/
|
|
@@ -976,7 +989,7 @@ interface CacheListAccessor<T = any> {
|
|
|
976
989
|
* still flow through. Tags supplied here merge additively with scope-level
|
|
977
990
|
* tags.
|
|
978
991
|
*/
|
|
979
|
-
interface TaggedScopedCacheContract {
|
|
992
|
+
export interface TaggedScopedCacheContract {
|
|
980
993
|
set(key: CacheKey, value: any, ttlOrOptions?: CacheTtl | CacheSetOptions): Promise<any>;
|
|
981
994
|
get<T = any>(key: CacheKey): Promise<T | null>;
|
|
982
995
|
has(key: CacheKey): Promise<boolean>;
|
|
@@ -1008,7 +1021,7 @@ interface TaggedScopedCacheContract {
|
|
|
1008
1021
|
* await chat.set("draft", d, { ttl: "1h" }); // per-call ttl wins
|
|
1009
1022
|
* await chat.clear(); // wipe the whole scope
|
|
1010
1023
|
*/
|
|
1011
|
-
interface ScopedCacheContract {
|
|
1024
|
+
export interface ScopedCacheContract {
|
|
1012
1025
|
/** The fully-qualified prefix this scope prepends to every key. */
|
|
1013
1026
|
readonly prefix: string;
|
|
1014
1027
|
/**
|
|
@@ -1051,7 +1064,7 @@ interface ScopedCacheContract {
|
|
|
1051
1064
|
lock<T>(key: CacheKey, ttlOrOptions: CacheTtl | Omit<LockOptions, "driver">, fn: () => Promise<T>): Promise<LockOutcome<T>>;
|
|
1052
1065
|
similar<T = any>(vector: number[], options: CacheSimilarOptions): Promise<CacheSimilarHit<T>[]>;
|
|
1053
1066
|
}
|
|
1054
|
-
type CacheData = {
|
|
1067
|
+
export type CacheData = {
|
|
1055
1068
|
/**
|
|
1056
1069
|
* Value stored in the cache
|
|
1057
1070
|
*/
|
|
@@ -1073,10 +1086,10 @@ type CacheData = {
|
|
|
1073
1086
|
*/
|
|
1074
1087
|
staleAt?: number;
|
|
1075
1088
|
};
|
|
1076
|
-
type DriverClass = new () => CacheDriver<any, any>;
|
|
1089
|
+
export type DriverClass = new () => CacheDriver<any, any>;
|
|
1077
1090
|
type DefaultDrivers = "redis" | "file" | "memory" | "memoryExtended" | "null" | "lru" | "pg" | "mock";
|
|
1078
1091
|
type MergeWithDefaultDrivers<T> = T extends undefined ? DefaultDrivers : DefaultDrivers | T;
|
|
1079
|
-
type CacheConfigurations<T extends string | undefined = undefined, DriverName = MergeWithDefaultDrivers<T>> = {
|
|
1092
|
+
export type CacheConfigurations<T extends string | undefined = undefined, DriverName = MergeWithDefaultDrivers<T>> = {
|
|
1080
1093
|
/**
|
|
1081
1094
|
* The default cache driver name
|
|
1082
1095
|
*/
|
|
@@ -1099,7 +1112,7 @@ type CacheConfigurations<T extends string | undefined = undefined, DriverName =
|
|
|
1099
1112
|
lru?: typeof LRUMemoryCacheDriver;
|
|
1100
1113
|
pg?: typeof PgCacheDriver;
|
|
1101
1114
|
mock?: typeof MockCacheDriver;
|
|
1102
|
-
} & { [key in Extract<T, string>]?: typeof BaseCacheDriver<any, any> | undefined };
|
|
1115
|
+
} & { [key in Extract<T, string>]?: typeof BaseCacheDriver<any, any> | undefined; };
|
|
1103
1116
|
/**
|
|
1104
1117
|
* The cache driver options
|
|
1105
1118
|
*/
|
|
@@ -1112,8 +1125,8 @@ type CacheConfigurations<T extends string | undefined = undefined, DriverName =
|
|
|
1112
1125
|
lru?: LRUMemoryCacheOptions;
|
|
1113
1126
|
pg?: PgCacheOptions;
|
|
1114
1127
|
mock?: MockCacheOptions;
|
|
1115
|
-
} & { [key in Extract<T, string>]?: GenericObject };
|
|
1128
|
+
} & { [key in Extract<T, string>]?: GenericObject; };
|
|
1116
1129
|
};
|
|
1117
1130
|
//#endregion
|
|
1118
|
-
export {
|
|
1131
|
+
export {};
|
|
1119
1132
|
//# sourceMappingURL=types.d.mts.map
|
package/esm/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../packages/cache/src/types.ts"],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../packages/cache/src/types.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa,mBAAmB;EAC9B,YAAmB;;;;;qBASR,6BAA6B;EACxC,YAAmB;;;;;qBASR,gCAAgC;EAC3C,YAAmB;;;;;qBASR,uCAAuC;EAClD,YACE;;;;;;;;qBAaS,8BAA8B;EACzC,YAAmB;;;;;qBASR,8BAA8B;EACzC,YAAmB;;;;;;;;;YAaT;;;;;;;;YASA;;;;YAKA,eAAe;;;;EAIzB;;;;;EAKA,UAAU;;;;;;;;;;;;YAaA;;;;;EAKV,KAAK;;;;;EAKL;;;;EAIA;;;;;;;;;;;;;;;YAgBU,YAAY;EAAO;EAAgB,OAAO;;EAAQ;;;;;;;;;;;;;YAalD;;;;EAIV,MAAM;;;;EAIN;;;;;EAKA;;;;;;;;;;;;YAaU;;;;EAIV,MAAM;;;;EAIN,qBAAqB;;;;;EAKrB;;;;EAIA,aAAa;;;;EAIb;;;;;EAKA;;;;;;;;;;;;EAYA;;;;;;;;;;EAUA;;;;;;;;;;YAWU;;;;;EAKV,MAAM;;;;;;;;EAQN;;;;;;;;;;;;;;;;;;;YAoBU;;;;;;EAMV,UAAU;;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IACE,eAAe;IACf,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,wBAAwB;IACxB,aAAa;IACb,YAAY;IACZ,cAAc;SAEb,OAAO,QAAQ,qBAAqB;;;;EAKvC;IACE,QAAQ;IACR,OAAO;IACP,SAAS;IACT,iBAAiB;IACjB,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;SAEN,OAAO,QAAQ,cAAc"}
|
package/esm/utils.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CacheKey, CacheSetOptions, CacheTtl, RememberOptions } from "./types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/cache/src/utils.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Make a proper key for the cache
|
|
6
5
|
*/
|
|
7
|
-
declare function parseCacheKey(key: CacheKey, options?: {
|
|
6
|
+
export declare function parseCacheKey(key: CacheKey, options?: {
|
|
8
7
|
globalPrefix?: string | (() => string);
|
|
9
8
|
}): string;
|
|
10
9
|
/**
|
|
@@ -29,7 +28,7 @@ declare function parseCacheKey(key: CacheKey, options?: {
|
|
|
29
28
|
* parseTtl("7d"); // 604800
|
|
30
29
|
* parseTtl(Infinity); // Infinity
|
|
31
30
|
*/
|
|
32
|
-
declare function parseTtl(input: CacheTtl): number;
|
|
31
|
+
export declare function parseTtl(input: CacheTtl): number;
|
|
33
32
|
/**
|
|
34
33
|
* Convert an absolute `expiresAt` (Date or epoch milliseconds) into a
|
|
35
34
|
* relative TTL in seconds.
|
|
@@ -42,7 +41,7 @@ declare function parseTtl(input: CacheTtl): number;
|
|
|
42
41
|
* expiresAtToTtl(new Date(Date.now() + 60_000)); // ~60
|
|
43
42
|
* expiresAtToTtl(Date.now() + 30 * 60 * 1000); // ~1800
|
|
44
43
|
*/
|
|
45
|
-
declare function expiresAtToTtl(expiresAt: number | Date): number;
|
|
44
|
+
export declare function expiresAtToTtl(expiresAt: number | Date): number;
|
|
46
45
|
/**
|
|
47
46
|
* Coerce the polymorphic 3rd `set` argument into a uniform `CacheSetOptions`
|
|
48
47
|
* shape. Lets callers (and `BaseCacheDriver.resolveSetOptions`) skip per-shape
|
|
@@ -52,7 +51,7 @@ declare function expiresAtToTtl(expiresAt: number | Date): number;
|
|
|
52
51
|
* - `number` / `string` (positional TTL) → `{ ttl }`
|
|
53
52
|
* - already an options object → returned as-is
|
|
54
53
|
*/
|
|
55
|
-
declare function normalizeToOptions(input?: CacheTtl | CacheSetOptions): CacheSetOptions;
|
|
54
|
+
export declare function normalizeToOptions(input?: CacheTtl | CacheSetOptions): CacheSetOptions;
|
|
56
55
|
/**
|
|
57
56
|
* Sibling of {@link normalizeToOptions} for the `remember()` call site, where
|
|
58
57
|
* the polymorphic 2nd argument is `CacheTtl | RememberOptions` (no `expiresAt`,
|
|
@@ -64,7 +63,7 @@ declare function normalizeToOptions(input?: CacheTtl | CacheSetOptions): CacheSe
|
|
|
64
63
|
* normalizeToRememberOptions("1h"); // { ttl: "1h" }
|
|
65
64
|
* normalizeToRememberOptions({ ttl: "1h", tags: ["x"] }); // returned as-is
|
|
66
65
|
*/
|
|
67
|
-
declare function normalizeToRememberOptions(input?: CacheTtl | RememberOptions): RememberOptions;
|
|
66
|
+
export declare function normalizeToRememberOptions(input?: CacheTtl | RememberOptions): RememberOptions;
|
|
68
67
|
/**
|
|
69
68
|
* Resolve the final TTL in seconds for a `set` call. Precedence:
|
|
70
69
|
*
|
|
@@ -76,7 +75,7 @@ declare function normalizeToRememberOptions(input?: CacheTtl | RememberOptions):
|
|
|
76
75
|
* Throws {@link CacheConfigurationError} when `ttl` and `expiresAt` are
|
|
77
76
|
* supplied together (mutually exclusive).
|
|
78
77
|
*/
|
|
79
|
-
declare function resolveTtl(ttl: CacheTtl | undefined, expiresAt: number | Date | undefined, fallback: number): number;
|
|
78
|
+
export declare function resolveTtl(ttl: CacheTtl | undefined, expiresAt: number | Date | undefined, fallback: number): number;
|
|
80
79
|
/**
|
|
81
80
|
* Combine any number of tag lists into a single deduped array, dropping
|
|
82
81
|
* `undefined`/empty entries. Returns `undefined` when no tags survive — lets
|
|
@@ -91,7 +90,7 @@ declare function resolveTtl(ttl: CacheTtl | undefined, expiresAt: number | Date
|
|
|
91
90
|
* mergeTagSets(undefined, undefined); // undefined
|
|
92
91
|
* mergeTagSets([], []); // undefined
|
|
93
92
|
*/
|
|
94
|
-
declare function mergeTagSets(...lists: (string[] | undefined)[]): string[] | undefined;
|
|
93
|
+
export declare function mergeTagSets(...lists: (string[] | undefined)[]): string[] | undefined;
|
|
95
94
|
/**
|
|
96
95
|
* Add extra tags to any option-bag that already shapes `tags?: string[]`.
|
|
97
96
|
* Pure — clones the input shape, never mutates. Tags are appended (caller
|
|
@@ -101,7 +100,7 @@ declare function mergeTagSets(...lists: (string[] | undefined)[]): string[] | un
|
|
|
101
100
|
* injectTags({ ttl: "1h" }, ["unread"]); // { ttl: "1h", tags: ["unread"] }
|
|
102
101
|
* injectTags({ tags: ["a"] }, ["b"]); // { tags: ["a", "b"] }
|
|
103
102
|
*/
|
|
104
|
-
declare function injectTags<T extends {
|
|
103
|
+
export declare function injectTags<T extends {
|
|
105
104
|
tags?: string[];
|
|
106
105
|
}>(options: T, extraTags: string[]): T;
|
|
107
106
|
/**
|
|
@@ -119,12 +118,12 @@ declare function injectTags<T extends {
|
|
|
119
118
|
* cosineSimilarity([1, 0, 0], [1, 0, 0]); // 1
|
|
120
119
|
* cosineSimilarity([1, 0, 0], [0, 1, 0]); // 0
|
|
121
120
|
*/
|
|
122
|
-
declare function cosineSimilarity(a: number[], b: number[]): number;
|
|
121
|
+
export declare function cosineSimilarity(a: number[], b: number[]): number;
|
|
123
122
|
/**
|
|
124
123
|
* Strip embedded `user:pass@` credentials from a string before it reaches
|
|
125
124
|
* any log sink.
|
|
126
125
|
*/
|
|
127
|
-
declare function redactCredentials(message: string): string;
|
|
126
|
+
export declare function redactCredentials(message: string): string;
|
|
128
127
|
/**
|
|
129
128
|
* Reduce an unknown thrown value to a log-safe `{ message, code? }` shape.
|
|
130
129
|
* Callers must never log the raw error object itself — it may carry the
|
|
@@ -132,11 +131,11 @@ declare function redactCredentials(message: string): string;
|
|
|
132
131
|
* driver-specific fields, all of which `console.log`/`util.inspect` would
|
|
133
132
|
* still print in full.
|
|
134
133
|
*/
|
|
135
|
-
declare function safeErrorInfo(error: unknown): {
|
|
134
|
+
export declare function safeErrorInfo(error: unknown): {
|
|
136
135
|
message: string;
|
|
137
136
|
code?: string;
|
|
138
137
|
};
|
|
139
|
-
declare enum CACHE_FOR {
|
|
138
|
+
export declare enum CACHE_FOR {
|
|
140
139
|
/**
|
|
141
140
|
* Cache for 30 Minutes (in seconds)
|
|
142
141
|
*/
|
|
@@ -179,5 +178,4 @@ declare enum CACHE_FOR {
|
|
|
179
178
|
ONE_YEAR = 31536000
|
|
180
179
|
}
|
|
181
180
|
//#endregion
|
|
182
|
-
export { CACHE_FOR, cosineSimilarity, expiresAtToTtl, injectTags, mergeTagSets, normalizeToOptions, normalizeToRememberOptions, parseCacheKey, parseTtl, redactCredentials, resolveTtl, safeErrorInfo };
|
|
183
181
|
//# sourceMappingURL=utils.d.mts.map
|
package/esm/utils.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.mts","names":[],"sources":["../../../../../../../packages/cache/src/utils.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.mts","names":[],"sources":["../../../../../../../packages/cache/src/utils.ts"],"mappings":";;;;;wBAQgB,cACd,KAAK,UACL;EAAW;;;;;;;;;;;;;;;;;;;;;;;;wBAqCG,SAAS,OAAO;;;;;;;;;;;;;wBAoDhB,eAAe,oBAAoB;;;;;;;;;;wBAsBnC,mBAAmB,QAAQ,WAAW,kBAAkB;;;;;;;;;;;;wBAuBxD,2BAA2B,QAAQ,WAAW,kBAAkB;;;;;;;;;;;;wBAuBhE,WACd,KAAK,sBACL,oBAAoB,kBACpB;;;;;;;;;;;;;;;wBAiCc,gBAAgB;;;;;;;;;;wBA2BhB,WAAW;EAAY;GAAmB,SAAS,GAAG,sBAAsB;;;;;;;;;;;;;;;;wBA0B5E,iBAAiB,aAAa;;;;;wBAwD9B,kBAAkB;;;;;;;;wBAWlB,cAAc;EAAmB;EAAiB;;oBAetD;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA"}
|
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"environment": "server"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@warlock.js/fs": "5.
|
|
8
|
+
"@warlock.js/fs": "5.32.0",
|
|
9
9
|
"@mongez/reinforcements": "^4.0.2",
|
|
10
|
-
"@warlock.js/logger": "5.
|
|
10
|
+
"@warlock.js/logger": "5.32.0",
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"author": "hassanzohdy",
|
|
49
49
|
"license": "MIT",
|
|
50
|
-
"version": "5.
|
|
50
|
+
"version": "5.32.0",
|
|
51
51
|
"main": "./cjs/index.cjs",
|
|
52
52
|
"module": "./esm/index.mjs",
|
|
53
53
|
"types": "./esm/index.d.mts",
|