(name: string, cacheQueryOptions?: CacheQueryOptions)
| 38 | } |
| 39 | |
| 40 | async open(name: string, cacheQueryOptions?: CacheQueryOptions): Promise<Table> { |
| 41 | if (!this.tables.has(name)) { |
| 42 | const cache = await this.adapter.caches.open(`${this.cacheNamePrefix}:${name}`); |
| 43 | const table = new CacheTable(name, cache, this.adapter, cacheQueryOptions); |
| 44 | this.tables.set(name, table); |
| 45 | } |
| 46 | return this.tables.get(name)!; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |