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

Method set

packages/core/src/cache/CacheAdapter.ts:11–11  ·  view source on GitHub ↗

* Sets the item to the cache. `origin` is used for cache invalidation and should reflect the change in data.

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

Source from the content-addressed store, hash-verified

9 * Sets the item to the cache. `origin` is used for cache invalidation and should reflect the change in data.
10 */
11 set(name: string, data: any, origin: string, expiration?: number): void | Promise<void>;
12
13 /**
14 * Removes the item from cache.

Callers 15

setMethod · 0.65
setMethod · 0.65
getTypeFunction · 0.65
getPkGetterMethod · 0.65
getPkGetterConvertedMethod · 0.65
getPkSerializerMethod · 0.65
getSnapshotGeneratorMethod · 0.65
getResultMapperMethod · 0.65
mapEntityPropertiesMethod · 0.65
registerCustomTypeMethod · 0.65
getPropertySnapshotMethod · 0.65
getEntityComparatorMethod · 0.65

Implementers 5

GeneratedCacheAdapterpackages/core/src/cache/GeneratedCache
MemoryCacheAdapterpackages/core/src/cache/MemoryCacheAda
ResultCacheAdapterNulltests/issues/GH6585.test.ts
ResultCacheAdapterMocktests/issues/GH6585.test.ts
RecordingAdaptertests/issues/GH7644.test.ts

Calls

no outgoing calls

Tested by

no test coverage detected