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
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { env } from "../../env/server"
|
||||
import { cacheOrGet } from "./cacheOrGet"
|
||||
import { deleteKey } from "./deleteKey"
|
||||
import { get } from "./get"
|
||||
@@ -6,7 +5,6 @@ import { set } from "./set"
|
||||
|
||||
import type { DataCache } from "../Cache"
|
||||
|
||||
export const API_KEY = env.REDIS_API_KEY ?? ""
|
||||
export async function createDistributedCache(): Promise<DataCache> {
|
||||
return {
|
||||
type: "redis",
|
||||
|
||||
Reference in New Issue
Block a user