Interface OracleCacheStatsRepository
- All Superinterfaces:
io.micronaut.data.repository.CrudRepository<CacheStatsEntity, String>, io.micronaut.data.repository.GenericRepository<CacheStatsEntity, String>
@JdbcRepository(dialect=ORACLE,
dataSource="${micronaut.oracle.cache.datasource}")
public interface OracleCacheStatsRepository
extends io.micronaut.data.repository.CrudRepository<CacheStatsEntity, String>
Repository for lightweight cache statistics rows.
- Since:
- 6.2.0
- Author:
- Davide Cocco
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateStats(String cacheName, long hitDelta, long missDelta, long putDelta, long invalidateDelta, Instant updatedAt) Applies cache statistics deltas.Methods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, insert, insertAll, save, saveAll, update, updateAll
-
Method Details
-
updateStats
void updateStats(String cacheName, long hitDelta, long missDelta, long putDelta, long invalidateDelta, Instant updatedAt) Applies cache statistics deltas.- Parameters:
cacheName- The cache namehitDelta- The cache hit count deltamissDelta- The cache miss count deltaputDelta- The cache put count deltainvalidateDelta- The cache invalidation count deltaupdatedAt- The update timestamp
-