Module

x/pothos/packages/plugin-smart-subscriptions/cache.ts>default

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class default
import { default } from "https://dotland.deno.dev/x/pothos@release-1713397530/packages/plugin-smart-subscriptions/cache.ts";

Constructors

new
default(manager: SubscriptionManager, buildCache: BuildCache<Types>)

Properties

buildCache: BuildCache<Types>
currentCache: Map<string, CacheNode<Types>>
invalidPaths: string[]
nextCache: Map<string, CacheNode<Types>>
prevInvalidPaths: string[]

Methods

add(
path: string,
canRefetch: boolean,
value: unknown,
)
cacheKey(path: Path)
get(path: string, reRegister: boolean)
getTypeSubscriber(type: string)