()
| 3 | |
| 4 | export class FetchCacheAdapter implements CacheServiceAdapter { |
| 5 | async getInfo(): Promise<CacheInfo> { |
| 6 | return get<CacheInfo>('/cache/info') |
| 7 | } |
| 8 | |
| 9 | async clear(cacheId: string): Promise<{ success: boolean; error?: string; message?: string }> { |
| 10 | return post<{ success: boolean; error?: string; message?: string }>('/cache/clear', { cacheId }) |