MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / set

Method set

packages/core/src/cache/MemoryCacheAdapter.ts:32–34  ·  view source on GitHub ↗

* @inheritDoc

(name: string, data: any, origin: string, expiration?: number)

Source from the content-addressed store, hash-verified

30 * @inheritDoc
31 */
32 set(name: string, data: any, origin: string, expiration?: number): void {
33 this.#data.set(name, { data, expiration: Date.now() + (expiration ?? this.#options.expiration) });
34 }
35
36 /**
37 * @inheritDoc

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected