Files
web/packages/common/dataCache/DistributedCache/client.ts
Anton Gunnarsson e1ede52014 Merged in fix/common-package-fix (pull request #2355)
fix: Tiny fixes in common package

* Fix self-referencing and circular imports

* Fix env isServer


Approved-by: Joakim Jäderberg
2025-06-13 11:36:40 +00:00

17 lines
356 B
TypeScript

import { cacheOrGet } from "./cacheOrGet"
import { deleteKey } from "./deleteKey"
import { get } from "./get"
import { set } from "./set"
import type { DataCache } from "../Cache"
export async function createDistributedCache(): Promise<DataCache> {
return {
type: "redis",
get,
set,
cacheOrGet,
deleteKey,
} satisfies DataCache
}