TypeDoc all the thngs
This commit is contained in:
5
src/support/cache/MemoryCache.ts
vendored
5
src/support/cache/MemoryCache.ts
vendored
@@ -1,7 +1,12 @@
|
||||
import {Collection} from "@extollo/util"
|
||||
import {Cache} from "./Cache"
|
||||
|
||||
/**
|
||||
* An in-memory implementation of the Cache.
|
||||
* This is the default implementation for compatibility, but applications should switch to a persistent-backed cache driver.
|
||||
*/
|
||||
export class MemoryCache extends Cache {
|
||||
/** Static collection of in-memory cache items. */
|
||||
private static cacheItems: Collection<{key: string, value: string, expires?: Date}> = new Collection<{key: string; value: string, expires?: Date}>()
|
||||
|
||||
public fetch(key: string): string | Promise<string | undefined> | undefined {
|
||||
|
||||
Reference in New Issue
Block a user