Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
bucket_settings.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright 2020-2021 Couchbase, Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#pragma once
19
21
22#include <map>
23#include <optional>
24#include <string>
25#include <vector>
26
28{
29enum class bucket_type {
30 unknown,
34};
36 unknown,
37 off,
38 active,
40};
42 unknown,
43
51 full,
52
61
69
76};
78 unknown,
88
98
105 custom,
106};
108 unknown,
110 magma
111};
112
135} // namespace couchbase::management::cluster
Definition bucket_settings.hxx:28
bucket_type
Definition bucket_settings.hxx:29
bucket_eviction_policy
Definition bucket_settings.hxx:41
@ no_eviction
Couchbase Server keeps all data until explicitly deleted, but will reject any new data if you reach t...
@ not_recently_used
When the memory quota is reached, Couchbase Server ejects data that has not been used recently.
@ full
During ejection, everything (including key, metadata, and value) will be ejected.
@ value_only
During ejection, only the value will be ejected (key and metadata will remain in memory).
bucket_conflict_resolution
Definition bucket_settings.hxx:77
@ custom
VOLATILE: This API is subject to change at any time.
@ sequence_number
Use sequence number conflict resolution.
bucket_compression
Definition bucket_settings.hxx:35
bucket_storage_backend
Definition bucket_settings.hxx:107
Definition bucket_settings.hxx:113
std::optional< bool > replica_indexes
Definition bucket_settings.hxx:122
bucket_conflict_resolution conflict_resolution_type
Definition bucket_settings.hxx:125
bucket_storage_backend storage_backend
UNCOMMITTED: This API may change in the future.
Definition bucket_settings.hxx:133
std::optional< std::uint32_t > history_retention_bytes
Definition bucket_settings.hxx:127
std::optional< couchbase::durability_level > minimum_durability_level
Definition bucket_settings.hxx:120
std::optional< bool > flush_enabled
Definition bucket_settings.hxx:123
std::optional< std::uint32_t > max_expiry
Definition bucket_settings.hxx:118
bucket_eviction_policy eviction_policy
Definition bucket_settings.hxx:124
std::optional< std::uint32_t > history_retention_duration
Definition bucket_settings.hxx:128
std::string name
Definition bucket_settings.hxx:115
std::optional< std::uint32_t > num_replicas
Definition bucket_settings.hxx:121
std::uint64_t ram_quota_mb
Definition bucket_settings.hxx:117
bucket_compression compression_mode
Definition bucket_settings.hxx:119
std::optional< bool > history_retention_collection_default
Definition bucket_settings.hxx:126