diff --git a/schema.hh b/schema.hh index 5b7bdda1c5..837b692e1f 100644 --- a/schema.hh +++ b/schema.hh @@ -19,6 +19,7 @@ #include "utils/UUID.hh" #include "compress.hh" #include "compaction_strategy.hh" +#include "caching_options.hh" using column_id = uint32_t; @@ -255,6 +256,7 @@ private: // we will use by default - when we have the choice. sstables::compaction_strategy_type _compaction_strategy = sstables::compaction_strategy_type::size_tiered; std::map _compaction_strategy_options; + caching_options _caching_options; }; raw_schema _raw; thrift_schema _thrift; @@ -386,6 +388,10 @@ public: return _raw._speculative_retry; } + const ::caching_options& caching_options() const { + return _raw._caching_options; + } + const column_definition* get_column_definition(const bytes& name) const; const_iterator regular_begin() const { return regular_columns().begin(); diff --git a/schema_builder.hh b/schema_builder.hh index 05b4ada3c9..1b88ccd8d6 100644 --- a/schema_builder.hh +++ b/schema_builder.hh @@ -142,6 +142,10 @@ public: _raw._compaction_strategy_options = std::move(options); } + void set_caching_options(caching_options c) { + _raw._caching_options = std::move(c); + } + void set_is_dense(bool is_dense) { _raw._is_dense = is_dense; }