#[non_exhaustive]pub struct KxDatabaseCacheConfiguration {
pub cache_type: String,
pub db_paths: Vec<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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KxDatabaseCacheConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for KxDatabaseCacheConfiguration
impl Send for KxDatabaseCacheConfiguration
impl Sync for KxDatabaseCacheConfiguration
impl Unpin for KxDatabaseCacheConfiguration
impl UnwindSafe for KxDatabaseCacheConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.