@pgcache/types
v0.0.1
Published
Shared TypeScript types for pgcache
Maintainers
Readme
@pgcache/types
Shared TypeScript types and interfaces for the pgcache ecosystem.
Installation
pnpm add @pgcache/typesUsage
import type { PgCacheOptions, CacheEntry } from "@pgcache/types";Exports
PgCacheOptions- Configuration options for PgCachePgCacheSetOptions- Options for set operations (TTL)CacheEntry- Internal cache entry representationPgCacheSetEntry- Entry for batch set operationsPgCacheTTLResult- Result of TTL checkPgCacheStats- Cache statistics- Error classes:
PgCacheError- Base errorPgCacheConnectionError- Connection errorsPgCacheQueryError- Query errorsPgCacheConfigError- Configuration errors
License
MIT
