#[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: StringThe 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 ==.impl StructuralPartialEq for KxDatabaseCacheConfiguration
Auto Trait Implementations§
impl Freeze for KxDatabaseCacheConfiguration
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more