import type { CacheLogFn, CacheStore } from "./redis-cache";

export function createNoopCache(log?: CacheLogFn): CacheStore {
  return {
    async getJson() {
      return undefined;
    },
    async setJson() {
      // no-op
    },
    async flush() {
      log?.("cache: noop flush");
    },
    async close() {
      // no-op
    },
  };
}

