Interface PrepareCache
- All Known Implementing Classes:
PrepareCache
public interface PrepareCache
LRU Prepare cache
-
Method Summary
Modifier and TypeMethodDescriptionget(String key, BasePreparedStatement preparedStatement) Get cache value for keyput(String key, Prepare result, BasePreparedStatement preparedStatement) Add a prepare cache valuevoidreset()Reset cache
-
Method Details
-
get
Get cache value for key- Parameters:
key- keypreparedStatement- prepared statement- Returns:
- Prepare value
-
put
Add a prepare cache value- Parameters:
key- keyresult- valuepreparedStatement- prepared statement- Returns:
- Prepare if was already cached
-
reset
void reset()Reset cache
-