public interface L1Cache
The first Level for cache, this interface is used by Jooq between Dao and Database, here are situation in current version:
1) Enabled cache between Dao and Database 2) Provide default arithmetic for cache key calculation 3) Three fixed situations: – 3.1)The cache key is primary key directly – 3.2)The cache key is unique key directly – 3.3)The cache key is condition for existing/missing checking
| Modifier and Type | Method and Description |
|---|---|
L1Cache |
bind(L1Config config) |
L1Cache |
bind(Vertx vertx) |
void |
delete(CMessage... message) |
Boolean |
exist(CMessage message) |
Future<Boolean> |
existAsync(CMessage message) |
<T> T |
read(CMessage message) |
<T> Future<T> |
readAsync(CMessage message) |
void |
write(CMessage... message) |
Copyright © 2021. All rights reserved.