CacheClient
CacheClient.DEFAULT_DOC_ROOT
CacheClient.DEFAULT_PORT
CacheClient.delete_all_cached_images()
CacheClient.delete_all_queued_images()
CacheClient.delete_cached_image()
CacheClient.delete_queued_image()
CacheClient.get_cached_images()
CacheClient.get_queued_images()
CacheClient.queue_image_for_caching()
get_client()
LRU Cache for Image Data
Bases: object
Provides an LRU cache for image data.
Cache an image file.
image_id – Image ID
image_file – Image file to cache
True if image file was cached, False otherwise
Cache an image with supplied iterator.
image_id – Image ID
image_file – Iterator retrieving image chunks
image_checksum – Checksum of image
True if image file was cached, False otherwise
Cleans up any invalid or incomplete cached images. The cache driver decides what that means…
Configure the driver for the cache and, if it fails to configure, fall back to using the SQLite driver which has no odd dependencies
Removes all cached image files and any attributes about the images and returns the number of cached image files that were deleted.
Removes all queued image files and any attributes about the images and returns the number of queued image files that were deleted.
Removes a specific cached image file and any attributes about the image
image_id – Image ID
Removes a specific queued image file and any attributes about the image
image_id – Image ID
Returns an iterator that caches the contents of an image while the image contents are read through the supplied iterator.
image_id – Image ID
image_checksum – checksum expected to be generated while iterating over image data
image_iter – Iterator that will read image contents
Return the number of hits that an image has
image_id – Opaque image identifier
Return the size of the image file for an image with supplied identifier.
image_id – Image ID
Returns a list of image IDs that are in the queue. The list should be sorted by the time the image ID was inserted into the queue.
Returns True if the image with the supplied ID has its image file cached.
image_id – Image ID
Returns True if the image identifier is in our cache queue.
image_id – Image ID
Open and yield file for reading the image file for an image with supplied identifier.
hit count will be incremented.
image_id – Image ID
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.