10.5.3. JdbcBinaryCacheStores
10.5.3.1. About JdbcBinaryCacheStore
The
JdbcBinaryCacheStore
supports all key types. It stores all keys with the same hash value (hashCode
method on the key) in the same table row/blob. The hash value common to the included keys is set as the primary key for the table row/blob. As a result of this hash value, JdbcBinaryCacheStore
offers excellent flexibility but at the cost of concurrency and throughput.
As an example, if three keys (
k1
, k2
and k3
) have the same hash code, they are stored in the same table row. If three different threads attempt to concurrently update k1
, k2
and k3
, they must do it sequentially because all three keys share the same row and therefore cannot be simultaneously updated.