deeplake.util.remove_cache¶
- deeplake.util.remove_cache.remove_memory_cache(storage: StorageProvider)¶
Removes the memory cache.
- deeplake.util.remove_cache.get_base_storage(storage: StorageProvider)¶
Removes all layers of caching and returns the underlying storage.
- deeplake.util.remove_cache.get_dataset_with_zero_size_cache(ds)¶
Returns a dataset with same storage but cache size set to zero.
- deeplake.util.remove_cache.create_read_copy_dataset(dataset, commit_id: str | None = None)¶
Creates a read-only copy of the given dataset object, without copying underlying data.
- Parameters:
dataset – The Dataset object to copy.
commit_id – The commit id to checkout the new read-only copy to.
- Returns:
A new Dataset object in read-only mode.