@onebun/cache 0.1.5 → 0.1.6
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/package.json +3 -3
- package/src/cache.module.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onebun/cache",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Caching module for OneBun framework - in-memory and Redis support",
|
|
5
5
|
"license": "LGPL-3.0",
|
|
6
6
|
"author": "RemRyahirev",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dev": "bun run --watch src/index.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@onebun/core": "^0.1.
|
|
41
|
-
"@onebun/envs": "^0.1.
|
|
40
|
+
"@onebun/core": "^0.1.11",
|
|
41
|
+
"@onebun/envs": "^0.1.4",
|
|
42
42
|
"effect": "^3.13.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/src/cache.module.ts
CHANGED
|
@@ -114,4 +114,13 @@ export class CacheModule {
|
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
115
115
|
return (CacheModule as any)[CACHE_MODULE_OPTIONS];
|
|
116
116
|
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Clear module options (used for testing)
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
static clearOptions(): void {
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
+
delete (CacheModule as any)[CACHE_MODULE_OPTIONS];
|
|
125
|
+
}
|
|
117
126
|
}
|