@onebun/cache 0.1.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onebun/cache",
3
- "version": "0.1.4",
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.6",
41
- "@onebun/envs": "^0.1.2",
40
+ "@onebun/core": "^0.1.11",
41
+ "@onebun/envs": "^0.1.4",
42
42
  "effect": "^3.13.10"
43
43
  },
44
44
  "devDependencies": {
@@ -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
  }
@@ -199,8 +199,8 @@ export class CacheService extends BaseService implements ICacheService {
199
199
  private initialized = false;
200
200
  private initPromise: Promise<void> | null = null;
201
201
 
202
- constructor(...args: unknown[]) {
203
- super(...args);
202
+ constructor() {
203
+ super();
204
204
 
205
205
  // Create in-memory cache by default
206
206
  // Will be initialized properly in the initialize() method