@fluojs/cache-manager 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/README.ko.md +1 -0
- package/README.md +1 -0
- package/package.json +4 -4
package/README.ko.md
CHANGED
|
@@ -202,6 +202,7 @@ defineModule(ManualCacheModule, {
|
|
|
202
202
|
- `@CacheTTL(seconds)`: 특정 핸들러의 TTL을 설정합니다.
|
|
203
203
|
- `@CacheKey(key)`: 특정 핸들러의 custom cache key 또는 key factory를 설정합니다.
|
|
204
204
|
- `@CacheEvict(key)`: 성공적인 non-GET 핸들러가 완료된 뒤 하나 이상의 cache key를 삭제합니다.
|
|
205
|
+
- `cacheRouteMetadataKey`, `getCacheKeyMetadata(...)`, `getCacheTtlMetadata(...)`, `getCacheEvictMetadata(...)`: 캐시 데코레이터 metadata key를 다시 구현하지 않고 cache decorator metadata를 검사해야 하는 first-party interceptor 통합, 진단, 고급 tooling을 위해 공개된 low-level metadata helper입니다.
|
|
205
206
|
|
|
206
207
|
### 인터셉터
|
|
207
208
|
- `CacheInterceptor`: 자동 GET 응답 캐싱 및 삭제 로직을 처리합니다.
|
package/README.md
CHANGED
|
@@ -202,6 +202,7 @@ For non-GET handlers decorated with `@CacheEvict(...)`, eviction is deferred unt
|
|
|
202
202
|
- `@CacheTTL(seconds)`: Sets the TTL for a specific handler.
|
|
203
203
|
- `@CacheKey(key)`: Sets a custom cache key or key factory for a specific handler.
|
|
204
204
|
- `@CacheEvict(key)`: Clears one or more cache keys after a successful non-GET handler completes.
|
|
205
|
+
- `cacheRouteMetadataKey`, `getCacheKeyMetadata(...)`, `getCacheTtlMetadata(...)`, and `getCacheEvictMetadata(...)`: Low-level metadata helpers exported for first-party interceptor integration, diagnostics, and advanced tooling that needs to inspect cache decorator metadata without reimplementing the metadata keys.
|
|
205
206
|
|
|
206
207
|
### Interceptors
|
|
207
208
|
- `CacheInterceptor`: Handles automatic GET response caching and eviction logic.
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"memory-store",
|
|
11
11
|
"decorator"
|
|
12
12
|
],
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.2",
|
|
14
14
|
"private": false,
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@fluojs/core": "^1.0.
|
|
40
|
+
"@fluojs/core": "^1.0.2",
|
|
41
|
+
"@fluojs/di": "^1.0.2",
|
|
41
42
|
"@fluojs/http": "^1.0.0",
|
|
42
|
-
"@fluojs/runtime": "^1.0
|
|
43
|
-
"@fluojs/di": "^1.0.1"
|
|
43
|
+
"@fluojs/runtime": "^1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"ioredis": "^5.0.0",
|