public interface PrepareCache
| Modifier and Type | Method and Description |
|---|---|
@Nullable Integer |
getIfPresent(String key)
Get the value of
key in cache. |
boolean |
putIfAbsent(String key,
int value,
IntConsumer evict)
Put the prepared result to the cache.
|
@Nullable @Nullable Integer getIfPresent(String key)
key in cache.key - the key which want to get.key, which is usually prepared statement ID.boolean putIfAbsent(String key, int value, IntConsumer evict)
key - the key of value, which is usually SQL statements.value - the value of key, which is usually prepared statement ID.evict - eviction value handler.true if value has been put succeed.Copyright © 2018–2023 asyncer.io. All rights reserved.