pub struct CacheConfigV2 {
pub cache_type: String,
pub cache_compressed: bool,
pub cache_validate: bool,
pub prefetch: PrefetchConfigV2,
pub file_cache: Option<FileCacheConfig>,
pub fs_cache: Option<FsCacheConfig>,
}Expand description
Configuration information for blob cache manager.
Fields§
§cache_type: StringType of blob cache: “blobcache”, “fscache” or “dummy”
cache_compressed: boolWhether the data from the cache is compressed, not used anymore.
cache_validate: boolWhether to validate data read from the cache.
prefetch: PrefetchConfigV2Configuration for blob level prefetch.
file_cache: Option<FileCacheConfig>Configuration information for file cache
fs_cache: Option<FsCacheConfig>Configuration information for fscache
Implementations§
Source§impl CacheConfigV2
impl CacheConfigV2
Sourcepub fn is_filecache(&self) -> bool
pub fn is_filecache(&self) -> bool
Check whether the cache type is filecache
Sourcepub fn is_fscache(&self) -> bool
pub fn is_fscache(&self) -> bool
Check whether the cache type is fscache
Sourcepub fn get_filecache_config(&self) -> Result<&FileCacheConfig>
pub fn get_filecache_config(&self) -> Result<&FileCacheConfig>
Get configuration information for file cache.
Sourcepub fn get_fscache_config(&self) -> Result<&FsCacheConfig>
pub fn get_fscache_config(&self) -> Result<&FsCacheConfig>
Get configuration information for fscache.
Trait Implementations§
Source§impl Clone for CacheConfigV2
impl Clone for CacheConfigV2
Source§fn clone(&self) -> CacheConfigV2
fn clone(&self) -> CacheConfigV2
Returns a duplicate 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 CacheConfigV2
impl Debug for CacheConfigV2
Source§impl Default for CacheConfigV2
impl Default for CacheConfigV2
Source§fn default() -> CacheConfigV2
fn default() -> CacheConfigV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CacheConfigV2
impl<'de> Deserialize<'de> for CacheConfigV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CacheConfigV2
impl PartialEq for CacheConfigV2
Source§impl Serialize for CacheConfigV2
impl Serialize for CacheConfigV2
impl Eq for CacheConfigV2
impl StructuralPartialEq for CacheConfigV2
Auto Trait Implementations§
impl Freeze for CacheConfigV2
impl RefUnwindSafe for CacheConfigV2
impl Send for CacheConfigV2
impl Sync for CacheConfigV2
impl Unpin for CacheConfigV2
impl UnwindSafe for CacheConfigV2
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