tricache 1.0.0 → 1.0.1
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/README.md +1 -1
- package/dist/{cache-service-pJ-nFcVj.d.ts → cache-service-CREOp7MM.d.ts} +29 -1
- package/dist/{cache-service-26GCO3UU.js → cache-service-MG7PN6MX.js} +1 -1
- package/dist/{chunk-VXFTFZ5N.js → chunk-3I5L7K6I.js} +17 -0
- package/dist/{chunk-7SZSQS55.js → chunk-JYQFQJNJ.js} +533 -295
- package/dist/cli.cjs +534 -296
- package/dist/cli.js +2 -2
- package/dist/dashboard/index.d.ts +2 -2
- package/dist/drizzle/index.cjs +533 -295
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/drizzle/index.js +1 -1
- package/dist/edge/index.cjs +55 -32
- package/dist/edge/index.d.ts +3 -3
- package/dist/edge/index.js +55 -32
- package/dist/hono/index.cjs +533 -295
- package/dist/hono/index.d.ts +2 -2
- package/dist/hono/index.js +1 -1
- package/dist/{hono-DuNvciyq.d.ts → hono-DSV2ve66.d.ts} +8 -1
- package/dist/http/index.cjs +585 -316
- package/dist/http/index.d.ts +3 -3
- package/dist/http/index.js +55 -24
- package/dist/index.cjs +550 -295
- package/dist/index.d.ts +5 -4
- package/dist/index.js +2 -2
- package/dist/nestjs/index.cjs +533 -295
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +2 -2
- package/dist/next/index.cjs +535 -303
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +3 -9
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{types-5HXqBfAf.d.ts → types-Dyip5wAl.d.ts} +2 -0
- package/package.json +1 -1
- package/src/adapters/node-redis.ts +19 -0
- package/src/cache-service.ts +599 -320
- package/src/cli.ts +1 -1
- package/src/edge/cache.ts +60 -35
- package/src/http/express.ts +55 -16
- package/src/http/fastify.ts +3 -7
- package/src/next/cache-handler.ts +1 -4
- package/src/next/isr-handler.ts +1 -4
- package/src/smart-memory-cache.ts +3 -2
- package/src/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CacheService, I as IIpcCacheProvider, a as IpcMetricsPayload, b as IpcTelemetryClient, c as IpcTelemetryServer, L as LatencyWatchdogOptions, d as LatencyWatchdogTelemetry, P as ProcessTerminationBus, T as TierLatencyWatchdog, e as deepMergeOptions, f as findActiveSockets, g as formatBytes, h as formatDuration, i as formatNumber, r as renderProgressBar, j as renderTopDashboard, k as resolveIpcSocketPath } from './cache-service-
|
|
2
|
-
import { j as IRemoteSnapshotAdapter, k as CategoryLimit, S as SmartCacheEntry, l as EvictionReason, i as ILogger, m as CacheHit, f as CachePriority, h as WTinyLfuStats$1, n as CacheEncryption, o as CompressionAlgorithm, p as DiskCacheEntry, D as DiskBackpressureStats, q as IRedisDriver, r as IRedisPipeline } from './types-
|
|
3
|
-
export { c as CacheHealthStatus, b as CacheMetrics, C as CacheOptions, g as CachePingResult, d as CachePresetType, e as CrossRegionInvalidationEvent, s as CrossRegionRelayOptions, t as CustomCompressor, E as EncryptionMode, u as EnvelopeEncryption, v as EnvelopeEncryptionOptions, H as HttpMeshRelayOptions, w as HttpSnapshotAdapterOptions, x as ICacheBatchObservableCallback, y as ICacheCounter, z as ICacheMeter, A as ICacheObservableGauge, B as ICacheSpan, F as ICacheSpanLink, I as ICacheTracer, G as ICrossRegionRelay, a as InvalidateTagOptions, L as LockOptions, R as RemoteSnapshotOptions, J as WebhookRequestLike, K as WebhookResponseLike, W as WrapOptions, M as consoleLogger, N as createCrossRegionWebhookHandler, O as createCustomCrossRegionRelay, P as createCustomSnapshotAdapter, Q as createHttpMeshRelay, T as createHttpSnapshotAdapter, U as createMemoryCrossRegionRelay, V as createMemorySnapshotAdapter, X as initZstd } from './types-
|
|
1
|
+
export { C as CacheService, I as IIpcCacheProvider, a as IpcMetricsPayload, b as IpcTelemetryClient, c as IpcTelemetryServer, L as LatencyWatchdogOptions, d as LatencyWatchdogTelemetry, P as ProcessTerminationBus, T as TierLatencyWatchdog, e as deepMergeOptions, f as findActiveSockets, g as formatBytes, h as formatDuration, i as formatNumber, r as renderProgressBar, j as renderTopDashboard, k as resolveIpcSocketPath } from './cache-service-CREOp7MM.js';
|
|
2
|
+
import { j as IRemoteSnapshotAdapter, k as CategoryLimit, S as SmartCacheEntry, l as EvictionReason, i as ILogger, m as CacheHit, f as CachePriority, h as WTinyLfuStats$1, n as CacheEncryption, o as CompressionAlgorithm, p as DiskCacheEntry, D as DiskBackpressureStats, q as IRedisDriver, r as IRedisPipeline } from './types-Dyip5wAl.js';
|
|
3
|
+
export { c as CacheHealthStatus, b as CacheMetrics, C as CacheOptions, g as CachePingResult, d as CachePresetType, e as CrossRegionInvalidationEvent, s as CrossRegionRelayOptions, t as CustomCompressor, E as EncryptionMode, u as EnvelopeEncryption, v as EnvelopeEncryptionOptions, H as HttpMeshRelayOptions, w as HttpSnapshotAdapterOptions, x as ICacheBatchObservableCallback, y as ICacheCounter, z as ICacheMeter, A as ICacheObservableGauge, B as ICacheSpan, F as ICacheSpanLink, I as ICacheTracer, G as ICrossRegionRelay, a as InvalidateTagOptions, L as LockOptions, R as RemoteSnapshotOptions, J as WebhookRequestLike, K as WebhookResponseLike, W as WrapOptions, M as consoleLogger, N as createCrossRegionWebhookHandler, O as createCustomCrossRegionRelay, P as createCustomSnapshotAdapter, Q as createHttpMeshRelay, T as createHttpSnapshotAdapter, U as createMemoryCrossRegionRelay, V as createMemorySnapshotAdapter, X as initZstd } from './types-Dyip5wAl.js';
|
|
4
4
|
export { B as BloomFilterStats, M as Murmur3BloomFilter, W as WasmBloomFilter, m as murmur3_32 } from './murmur3-CMGw9PbV.js';
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
export { DashboardActionEvent, DashboardOptions, DashboardPeerInstance, StandaloneDashboardOptions, createNextDashboardHandlers, handleDashboardRequest, startDashboardServer, tricacheDashboard } from './dashboard/index.js';
|
|
@@ -203,7 +203,7 @@ declare class SmartMemoryCache {
|
|
|
203
203
|
private maybeRebuildBloom;
|
|
204
204
|
private smartEvict;
|
|
205
205
|
get(key: string): CacheHit | null;
|
|
206
|
-
set(key: string, data: unknown, ttlMs: number, priority?: CachePriority, staleAt?: number, delta?: number, tagVersions?: Record<string, number
|
|
206
|
+
set(key: string, data: unknown, ttlMs: number, priority?: CachePriority, staleAt?: number, delta?: number, tagVersions?: Record<string, number>, setAt?: number): void;
|
|
207
207
|
delete(key: string): boolean;
|
|
208
208
|
private keysMatchingPattern;
|
|
209
209
|
deletePattern(pattern: string): number;
|
|
@@ -824,6 +824,7 @@ declare class NodeRedisAdapter implements IRedisDriver {
|
|
|
824
824
|
sadd(key: string, ...members: string[]): Promise<number>;
|
|
825
825
|
mget(keys: string[]): Promise<(string | null)[]>;
|
|
826
826
|
hset(key: string, value: Record<string, string>): Promise<unknown>;
|
|
827
|
+
hgetall(key: string): Promise<Record<string, string>>;
|
|
827
828
|
publish(channel: string, message: string): Promise<number>;
|
|
828
829
|
subscribe(...channels: string[]): Promise<unknown>;
|
|
829
830
|
scanStream(options?: {
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
createSigV4SnapshotAdapter,
|
|
15
15
|
formatTraceParent,
|
|
16
16
|
parseTraceParent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3I5L7K6I.js";
|
|
18
18
|
import {
|
|
19
19
|
AutoPipeliner,
|
|
20
20
|
CacheCodec,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveAutonomousL1MaxBytes,
|
|
44
44
|
resolveDefaultDiskDir,
|
|
45
45
|
resolveIpcSocketPath
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JYQFQJNJ.js";
|
|
47
47
|
import {
|
|
48
48
|
CacheEncryption,
|
|
49
49
|
CachePriority,
|