@veloxts/cache 0.6.58 → 0.6.59
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/CHANGELOG.md +8 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -1
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,20 @@ export { createRedisCache, DRIVER_NAME as REDIS_DRIVER } from './drivers/redis.j
|
|
|
43
43
|
export { type CacheManager, cache, createCacheManager, type TaggedCache, } from './manager.js';
|
|
44
44
|
export { cachePlugin, closeCache, getCache, getCacheFromInstance, initCache, } from './plugin.js';
|
|
45
45
|
export type { CacheConfig, CacheDriver, CacheEntry, CacheOptions, CachePluginOptions, CacheStore, DurationString, LockOptions, LockResult, MemoryCacheConfig, RedisCacheConfig, TaggableCacheStore, TTL, } from './types.js';
|
|
46
|
+
/**
|
|
47
|
+
* Utility functions for TTL parsing and formatting.
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Import from '@veloxts/cache/utils' instead. Will be removed in v2.0.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // Old (deprecated):
|
|
54
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache';
|
|
55
|
+
*
|
|
56
|
+
* // New:
|
|
57
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache/utils';
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
46
60
|
export { formatTtl, isDurationString, parseTtl, parseTtlMs, } from './utils.js';
|
|
47
61
|
/**
|
|
48
62
|
* DI tokens and providers for @veloxts/cache
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,20 @@ export { createRedisCache, DRIVER_NAME as REDIS_DRIVER } from './drivers/redis.j
|
|
|
45
45
|
export { cache, createCacheManager, } from './manager.js';
|
|
46
46
|
// Plugin
|
|
47
47
|
export { cachePlugin, closeCache, getCache, getCacheFromInstance, initCache, } from './plugin.js';
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Utility functions for TTL parsing and formatting.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Import from '@veloxts/cache/utils' instead. Will be removed in v2.0.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* // Old (deprecated):
|
|
56
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache';
|
|
57
|
+
*
|
|
58
|
+
* // New:
|
|
59
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache/utils';
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
49
62
|
export { formatTtl, isDurationString, parseTtl, parseTtlMs, } from './utils.js';
|
|
50
63
|
// ============================================================================
|
|
51
64
|
// Dependency Injection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/cache",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.59",
|
|
4
4
|
"description": "Multi-driver caching layer for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./utils": {
|
|
14
|
+
"types": "./dist/utils.d.ts",
|
|
15
|
+
"import": "./dist/utils.js"
|
|
16
|
+
},
|
|
13
17
|
"./drivers/memory": {
|
|
14
18
|
"types": "./dist/drivers/memory.d.ts",
|
|
15
19
|
"import": "./dist/drivers/memory.js"
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
"fastify-plugin": "5.1.0",
|
|
32
36
|
"lru-cache": "11.1.0",
|
|
33
37
|
"superjson": "2.2.2",
|
|
34
|
-
"@veloxts/core": "0.6.
|
|
38
|
+
"@veloxts/core": "0.6.59"
|
|
35
39
|
},
|
|
36
40
|
"peerDependencies": {
|
|
37
41
|
"ioredis": ">=5.0.0"
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
"ioredis": "5.6.1",
|
|
48
52
|
"typescript": "5.9.3",
|
|
49
53
|
"vitest": "4.0.16",
|
|
50
|
-
"@veloxts/testing": "0.6.
|
|
54
|
+
"@veloxts/testing": "0.6.59"
|
|
51
55
|
},
|
|
52
56
|
"keywords": [
|
|
53
57
|
"velox",
|