#[non_exhaustive]pub struct KxDatabaseCacheConfigurationBuilder { /* private fields */ }
Expand description
A builder for KxDatabaseCacheConfiguration
.
Implementations§
source§impl KxDatabaseCacheConfigurationBuilder
impl KxDatabaseCacheConfigurationBuilder
sourcepub fn cache_type(self, input: impl Into<String>) -> Self
pub fn cache_type(self, input: impl Into<String>) -> Self
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn set_cache_type(self, input: Option<String>) -> Self
pub fn set_cache_type(self, input: Option<String>) -> Self
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn get_cache_type(&self) -> &Option<String>
pub fn get_cache_type(&self) -> &Option<String>
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn db_paths(self, input: impl Into<String>) -> Self
pub fn db_paths(self, input: impl Into<String>) -> Self
Appends an item to db_paths
.
To override the contents of this collection use set_db_paths
.
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn set_db_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_db_paths(self, input: Option<Vec<String>>) -> Self
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn get_db_paths(&self) -> &Option<Vec<String>>
pub fn get_db_paths(&self) -> &Option<Vec<String>>
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn build(self) -> Result<KxDatabaseCacheConfiguration, BuildError>
pub fn build(self) -> Result<KxDatabaseCacheConfiguration, BuildError>
Consumes the builder and constructs a KxDatabaseCacheConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KxDatabaseCacheConfigurationBuilder
impl Clone for KxDatabaseCacheConfigurationBuilder
source§fn clone(&self) -> KxDatabaseCacheConfigurationBuilder
fn clone(&self) -> KxDatabaseCacheConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for KxDatabaseCacheConfigurationBuilder
impl Default for KxDatabaseCacheConfigurationBuilder
source§fn default() -> KxDatabaseCacheConfigurationBuilder
fn default() -> KxDatabaseCacheConfigurationBuilder
source§impl PartialEq for KxDatabaseCacheConfigurationBuilder
impl PartialEq for KxDatabaseCacheConfigurationBuilder
source§fn eq(&self, other: &KxDatabaseCacheConfigurationBuilder) -> bool
fn eq(&self, other: &KxDatabaseCacheConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.