iceberg::cache

Trait ObjectCacheProvide

Source
pub trait ObjectCacheProvide: Send + Sync {
    // Required methods
    fn manifest_cache(&self) -> &dyn ObjectCache<String, Arc<Manifest>>;
    fn manifest_list_cache(&self) -> &dyn ObjectCache<String, Arc<ManifestList>>;
}
Expand description

A trait for caching different in-memory objects used by iceberg.

§Notes

ObjectCache will store deeply nested objects, such as Manifest, which contains Schema. Please ensure that the cache stores the object in memory as-is, without attempting to serialize it, as serialization could be extremely expensive.

Required Methods§

Source

fn manifest_cache(&self) -> &dyn ObjectCache<String, Arc<Manifest>>

Gets a cache for manifests.

Source

fn manifest_list_cache(&self) -> &dyn ObjectCache<String, Arc<ManifestList>>

Gets a cache for manifest lists.

Implementors§

impl ObjectCacheProvide for MokaObjectCacheProvider