| 103 | return this.#instance; | 103 | return this.#instance; |
| 104 | } | 104 | } |
| 105 | | 105 | |
| 106 | this.#instance = storage.create({ dir: this.cachePath, ttl: false, forgiveParseErrors: true }); | 106 | this.#instance = storage.create({ |
| | 107 | dir: this.cachePath, |
| | 108 | ttl: false, |
| | 109 | forgiveParseErrors: true, |
| | 110 | // @ts-ignore |
| | 111 | maxFileDescriptors: 100, |
| | 112 | }); |
| 107 | await this.#instance.init(); | 113 | await this.#instance.init(); |
| 108 | this.#syncInterval = setInterval(this.#syncCacheEntries.bind(this), DiskCache.SYNC_INTERVAL); | 114 | this.#syncInterval = setInterval(this.#syncCacheEntries.bind(this), DiskCache.SYNC_INTERVAL); |
| 109 | return this.#instance; | 115 | return this.#instance; |