此内容没有您所选择的语言版本。
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.