StorageSettingsCache

Trait StorageSettingsCache 

Source
pub trait StorageSettingsCache: Send + Sync {
    // Required methods
    fn cached_storage_settings(&self) -> StorageSettings;
    fn set_storage_settings_cache(&self, settings: StorageSettings);
}
Available on crate feature db-api only.
Expand description

Trait for caching storage settings on a provider factory.

Required Methods§

Source

fn cached_storage_settings(&self) -> StorageSettings

Gets the cached storage settings.

Source

fn set_storage_settings_cache(&self, settings: StorageSettings)

Sets the storage settings of this ProviderFactory.

IMPORTANT: It does not save settings in storage, that should be done by MetadataWriter::write_storage_settings

Implementors§