@node-ts-cache/core 1.0.1 → 1.0.2
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/LICENSE +1 -1
- package/README.md +12 -9
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -31,15 +31,18 @@ class UserService {
|
|
|
31
31
|
|
|
32
32
|
The core package includes `MemoryStorage` and `FsJsonStorage`. Additional storage backends are available as separate packages:
|
|
33
33
|
|
|
34
|
-
| Package
|
|
35
|
-
|
|
|
36
|
-
| `@node-ts-cache/core`
|
|
37
|
-
| `@node-ts-cache/core`
|
|
38
|
-
| `@node-ts-cache/node-cache-storage`
|
|
39
|
-
| `@node-ts-cache/lru-storage`
|
|
40
|
-
| `@node-ts-cache/redis-storage`
|
|
41
|
-
| `@node-ts-cache/ioredis-storage`
|
|
42
|
-
| `@node-ts-cache/lru-redis-storage`
|
|
34
|
+
| Package | Storage Type | Sync/Async | Use Case |
|
|
35
|
+
| -------------------------------------- | --------------------------------------------------------------------- | ---------- | -------------------------------------- |
|
|
36
|
+
| `@node-ts-cache/core` | MemoryStorage | Sync | Development, simple caching |
|
|
37
|
+
| `@node-ts-cache/core` | FsJsonStorage | Async | Persistent local cache |
|
|
38
|
+
| `@node-ts-cache/node-cache-storage` | [node-cache](https://www.npmjs.com/package/node-cache) | Sync | Production single-instance with TTL |
|
|
39
|
+
| `@node-ts-cache/lru-storage` | [lru-cache](https://www.npmjs.com/package/lru-cache) | Sync | Memory-bounded with automatic eviction |
|
|
40
|
+
| `@node-ts-cache/redis-storage` | [redis](https://www.npmjs.com/package/redis) (v4.x) | Async | Shared cache |
|
|
41
|
+
| `@node-ts-cache/ioredis-storage` | [ioredis](https://www.npmjs.com/package/ioredis) | Async | Shared cache with compression |
|
|
42
|
+
| `@node-ts-cache/lru-redis-storage` | LRU + Redis | Async | Two-tier: fast local + shared remote |
|
|
43
|
+
| `@node-ts-cache/elasticsearch-storage` | [elasticsearch](https://www.npmjs.com/package/@elastic/elasticsearch) | Async | Search-integrated caching |
|
|
44
|
+
| `@node-ts-cache/memcached-storage` | [memcached](https://www.npmjs.com/package/memcached) | Async | High-performance distributed cache |
|
|
45
|
+
| `@node-ts-cache/valkey-storage` | [iovalkey](https://www.npmjs.com/package/iovalkey) | Async | Redis-compatible, open source |
|
|
43
46
|
|
|
44
47
|
## Decorators
|
|
45
48
|
|