The cinder.image.cache Module

The cinder.image.cache Module

class ImageVolumeCache(db, volume_api, max_cache_size_gb=0, max_cache_size_count=0)

Bases: object

create_cache_entry(context, volume_ref, image_id, image_meta)

Create a new cache entry for an image.

This assumes that the volume described by volume_ref has already been created and is in an available state.

ensure_space(context, volume)

Makes room for a volume cache entry.

Returns True if successful, false otherwise.

evict(context, cache_entry)
get_by_image_volume(context, volume_id)
get_entry(context, volume_ref, image_id, image_meta)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.