Skip to main content

Cache API

CacheHandle provides realm-scoped cache maintenance helpers.

Access

const cache = realm.cache();

Methods

  • clearUserCache()
  • clearKeysCache()
  • clearCrlCache()
  • clearRealmCache()
await realm.cache().clearUserCache();
await realm.cache().clearKeysCache();
await realm.cache().clearRealmCache();

These methods are thin wrappers around Keycloak's admin cache endpoints and are intended for operational scripts rather than entity provisioning.