【问题标题】:How to set rows per partition cache如何设置每个分区缓存的行
【发布时间】:2017-07-11 16:23:49
【问题描述】:

Phantom DSL 中是否可以指定每个分区缓存的行数?我能做到:

.create.ifNotExists().with(缓存 eqs Cache.RowsOnly())

但我找不到如何指定缓存条件的方法,例如:所有键 + 每个分区 500 行。

【问题讨论】:

    标签: scala cassandra phantom-dsl


    【解决方案1】:
    table
      .create.ifNotExists()
      .with(
        caching eqs Cache.RowsOnly().rows_per_partition(CacheStrategies.ALL)
      )
    

    【讨论】:

      猜你喜欢
      • 2014-09-24
      • 2023-02-15
      • 1970-01-01
      • 1970-01-01
      • 2011-05-31
      • 2020-05-03
      • 1970-01-01
      • 1970-01-01
      • 2019-06-13
      相关资源
      最近更新 更多