Files
web/packages/common/dataCache/DistributedCache/client.ts
Joakim Jäderberg 8ed16a0119 Merged in feat/redis-fix (pull request #3207)
Feat/redis fix

* feat(redis): delete multiple keys in one partition scan

* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan


Approved-by: Linus Flood
2025-11-24 10:17:35 +00:00

19 lines
414 B
TypeScript

import { cacheOrGet } from "./cacheOrGet"
import { deleteKey } from "./deleteKey"
import { deleteKeys } from "./deleteKeys"
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,
deleteKeys,
} satisfies DataCache
}