EntityManagerKeyValueStore(entityManagerProvider: () -> EntityManager, entityClass: Class<V>, idAccessor: (V) -> K, coroutineContext: CoroutineContext = Dispatchers.IO)
JPA-backed key value store.
entityClass
- the class of entity to store
entityManagerProvider
- the provider of entity managers to interact with JPA