open-index/open-npm huggingface dataset:
npm package: @pgcache/types
Description: Shared TypeScript types for pgcache
Latest version: 0.0.1

# @pgcache/types

Shared TypeScript types and interfaces for the pgcache ecosystem.

## Installation

```bash
pnpm add @pgcache/types
```

## Usage

```typescript
import type { PgCacheOptions, CacheEntry } from "@pgcache/types";
```

## Exports

- `PgCacheOptions` - Configuration options for PgCache
- `PgCacheSetOptions` - Options for set operations (TTL)
- `CacheEntry` - Internal cache entry representation
- `PgCacheSetEntry` - Entry for batch set operations
- `PgCacheTTLResult` - Result of TTL check
- `PgCacheStats` - Cache statistics
- Error classes:
  - `PgCacheError` - Base error
  - `PgCacheConnectionError` - Connection errors
  - `PgCacheQueryError` - Query errors
  - `PgCacheConfigError` - Configuration errors

## License

MIT