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, space_required, host)

Makes room for a 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)

Previous topic

The cinder.i18n Module

Next topic

The cinder.image.glance Module

Project Source

This Page