signalk-parquet
Version:
SignalK plugin and webapp that archives SK data to Parquet files with a regimen control system, advanced querying, Claude integrated AI analysis, spatial capabilities, and REST API.
54 lines • 1.51 kB
TypeScript
import { Context, Path } from '@signalk/server-api';
import { ZonedDateTime } from '@js-joda/core';
/**
* Get cached paths for a specific context and time range
*/
export declare function getCachedPaths(context: Context, from: ZonedDateTime, to: ZonedDateTime): Path[] | null;
/**
* Cache paths for a specific context and time range
*/
export declare function setCachedPaths(context: Context, from: ZonedDateTime, to: ZonedDateTime, paths: Path[]): void;
/**
* Clear all cached paths
*/
export declare function clearPathCache(): void;
/**
* Get cache statistics for monitoring
*/
export declare function getPathCacheStats(): {
size: number;
maxSize: number;
ttlMs: number;
};
/**
* Get cached contexts for a specific time range
*/
export declare function getCachedContexts(from: ZonedDateTime, to: ZonedDateTime): Context[] | null;
/**
* Cache contexts for a specific time range
*/
export declare function setCachedContexts(from: ZonedDateTime, to: ZonedDateTime, contexts: Context[]): void;
/**
* Clear all cached contexts
*/
export declare function clearContextCache(): void;
/**
* Clear all caches (paths and contexts)
*/
export declare function clearAllCaches(): void;
/**
* Get all cache statistics
*/
export declare function getAllCacheStats(): {
paths: {
size: number;
maxSize: number;
ttlMs: number;
};
contexts: {
size: number;
maxSize: number;
ttlMs: number;
};
};
//# sourceMappingURL=path-cache.d.ts.map