mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-27 02:57:15 +00:00
actualizeAll now is overridable in auto recache repos
This commit is contained in:
parent
a5f718e257
commit
168d6acf7c
@ -40,7 +40,7 @@ open class AutoRecacheReadCRUDRepo<RegisteredObject, Id>(
|
||||
idGetter: (RegisteredObject) -> Id
|
||||
) : this(originalRepo, scope, kvCache, recacheDelay, ActionWrapper.Timeouted(originalCallTimeoutMillis), idGetter)
|
||||
|
||||
protected suspend fun actualizeAll(): Result<Unit> {
|
||||
protected open suspend fun actualizeAll(): Result<Unit> {
|
||||
return runCatchingSafely {
|
||||
kvCache.actualizeAll(originalRepo)
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ open class AutoRecacheReadKeyValueRepo<Id, RegisteredObject>(
|
||||
idGetter: (RegisteredObject) -> Id
|
||||
) : this(originalRepo, scope, kvCache, recacheDelay, ActionWrapper.Timeouted(originalCallTimeoutMillis), idGetter)
|
||||
|
||||
protected suspend fun actualizeAll(): Result<Unit> {
|
||||
protected open suspend fun actualizeAll(): Result<Unit> {
|
||||
return runCatchingSafely {
|
||||
kvCache.actualizeAll(originalRepo)
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ open class AutoRecacheReadKeyValuesRepo<Id, RegisteredObject>(
|
||||
recacheDelay: Long = 60.seconds.inWholeMilliseconds
|
||||
) : this(originalRepo, scope, kvCache, recacheDelay, ActionWrapper.Timeouted(originalCallTimeoutMillis))
|
||||
|
||||
protected suspend fun actualizeAll(): Result<Unit> {
|
||||
protected open suspend fun actualizeAll(): Result<Unit> {
|
||||
return runCatchingSafely {
|
||||
kvCache.actualizeAll(originalRepo)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user