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

Method clear

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

* Clears all items stored in the cache.

()

Source from the content-addressed store, hash-verified

19 * Clears all items stored in the cache.
20 */
21 clear(): void | Promise<void>;
22
23 /**
24 * Called inside `MikroORM.close()` Allows graceful shutdowns (e.g. for redis).

Callers 13

clearMethod · 0.65
clearMethod · 0.65
resetServiceCacheMethod · 0.65
clearIdentityMapFunction · 0.65
clearMethod · 0.65
dispatchOnLoadEventMethod · 0.65
clearActionsQueueMethod · 0.65
clearMethod · 0.65
computeChangeSetsMethod · 0.65
postCommitCleanupMethod · 0.65
registerSubscriberMethod · 0.65
initMethod · 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