#[non_exhaustive]pub struct KxDatabaseCacheConfiguration {
pub cache_type: String,
pub db_paths: Vec<String>,
pub dataview_name: Option<String>,
}
Expand description
The structure of database cache configuration that is used for mapping database paths to cache types in clusters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cache_type: 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.
db_paths: Vec<String>
Specifies the portions of database that will be loaded into the cache for access.
dataview_name: Option<String>
The name of the dataview to be used for caching historical data on disk.
Implementations§
source§impl KxDatabaseCacheConfiguration
impl KxDatabaseCacheConfiguration
sourcepub fn cache_type(&self) -> &str
pub fn cache_type(&self) -> &str
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) -> &[String]
pub fn db_paths(&self) -> &[String]
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn dataview_name(&self) -> Option<&str>
pub fn dataview_name(&self) -> Option<&str>
The name of the dataview to be used for caching historical data on disk.
source§impl KxDatabaseCacheConfiguration
impl KxDatabaseCacheConfiguration
sourcepub fn builder() -> KxDatabaseCacheConfigurationBuilder
pub fn builder() -> KxDatabaseCacheConfigurationBuilder
Creates a new builder-style object to manufacture KxDatabaseCacheConfiguration
.
Trait Implementations§
source§impl Clone for KxDatabaseCacheConfiguration
impl Clone for KxDatabaseCacheConfiguration
source§fn clone(&self) -> KxDatabaseCacheConfiguration
fn clone(&self) -> KxDatabaseCacheConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KxDatabaseCacheConfiguration
impl Debug for KxDatabaseCacheConfiguration
source§impl PartialEq for KxDatabaseCacheConfiguration
impl PartialEq for KxDatabaseCacheConfiguration
source§fn eq(&self, other: &KxDatabaseCacheConfiguration) -> bool
fn eq(&self, other: &KxDatabaseCacheConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.