@Test @DisplayName("clear cache") void clearCache() { TenantId tenantId = generate(); repository.keep(tenantId); repository.clearCache(); assertFalse(repository.unCache(tenantId)); }
protected final void clearCache() { cache.clear(); }
TenantRepository extends DefaultRecordBasedRepository<TenantId, E, T> implements TenantIndex { protected final void clearCache() { cache.clear(); } }
TenantRepository extends DefaultRecordBasedRepository<TenantId, E, T> implements TenantIndex { protected final void clearCache() { cache.clear(); }  }
TenantRepository extends DefaultRecordBasedRepository<TenantId, E, T> implements TenantIndex { protected final void clearCache() { cache.clear(); }  @Override final void registerWith(BoundedContext context); @Override final void keep(TenantId id); @Override final Set<TenantId> all(); }
TenantRepository extends DefaultRecordBasedRepository<TenantId, E, T> implements TenantIndex { protected final void clearCache() { cache.clear(); }  @Override final void registerWith(BoundedContext context); @Override final void keep(TenantId id); @Override final Set<TenantId> all();  }