Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tiny-schools-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@node-ts-cache/core": patch
---

Simplify README and add storage engines table
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ Always run these checks before committing:
│ └── test/ # Test files
├── storages/ # Storage adapter packages
│ ├── lru/ # LRU cache storage
│ ├── redis/ # Redis storage (redis package v3.x)
│ ├── redis/ # Redis storage (redis package v4.x)
│ ├── redisio/ # Redis storage (ioredis with compression)
│ ├── node-cache/ # node-cache storage
│ └── lru-redis/ # Two-tier LRU + Redis storage
```

## Testing Framework

- Uses Mocha with ts-node ESM loader
- Uses Vitest
- Tests use Node's built-in `assert` module
- Mock Redis instances using `redis-mock` and `ioredis-mock`
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This is a monorepo containing the following packages:

| Package | Version | Description |
| ---------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------ |
| [@node-ts-cache/redis-storage](./storages/redis) | ![npm](https://img.shields.io/npm/v/@node-ts-cache/redis-storage.svg) | Redis storage using `redis` package (v3.x) |
| [@node-ts-cache/redis-storage](./storages/redis) | ![npm](https://img.shields.io/npm/v/@node-ts-cache/redis-storage.svg) | Redis storage using `redis` package (v4.x) |
| [@node-ts-cache/ioredis-storage](./storages/redisio) | ![npm](https://img.shields.io/npm/v/@node-ts-cache/ioredis-storage.svg) | Redis storage using `ioredis` with compression support |
| [@node-ts-cache/node-cache-storage](./storages/node-cache) | ![npm](https://img.shields.io/npm/v/@node-ts-cache/node-cache-storage.svg) | In-memory cache using `node-cache` |
| [@node-ts-cache/lru-storage](./storages/lru) | ![npm](https://img.shields.io/npm/v/@node-ts-cache/lru-storage.svg) | LRU cache with automatic eviction |
Expand Down Expand Up @@ -96,7 +96,7 @@ For detailed documentation, see the [main package README](./ts-cache/README.md).
| **FsJsonStorage** | Async | Persistent local cache | File-based, survives restarts |
| **NodeCacheStorage** | Sync | Production single-instance | TTL support, multi-ops |
| **LRUStorage** | Sync | Memory-constrained apps | Auto-eviction, size limits |
| **RedisStorage** | Async | Distributed systems | Shared cache, legacy redis |
| **RedisStorage** | Async | Distributed systems | Shared cache, redis v4 |
| **RedisIOStorage** | Async | Distributed systems | Compression, modern ioredis |
| **LRUWithRedisStorage** | Async | High-performance distributed | Local + remote tiers |

Expand Down
Loading