【发布时间】:2017-07-11 16:23:49
【问题描述】:
Phantom DSL 中是否可以指定每个分区缓存的行数?我能做到:
.create.ifNotExists().
with(缓存 eqs Cache.RowsOnly())
但我找不到如何指定缓存条件的方法,例如:所有键 + 每个分区 500 行。
【问题讨论】:
标签: scala cassandra phantom-dsl
Phantom DSL 中是否可以指定每个分区缓存的行数?我能做到:
.create.ifNotExists().
with(缓存 eqs Cache.RowsOnly())
但我找不到如何指定缓存条件的方法,例如:所有键 + 每个分区 500 行。
【问题讨论】:
标签: scala cassandra phantom-dsl
table
.create.ifNotExists()
.with(
caching eqs Cache.RowsOnly().rows_per_partition(CacheStrategies.ALL)
)
【讨论】: