cinder.volume.drivers.dell_emc.scaleio.simplecache
Modulecinder.volume.drivers.dell_emc.scaleio.simplecache
Module¶SimpleCache utility class for Dell EMC ScaleIO Driver.
SimpleCache
(name, age_minutes=30)¶Bases: object
get_value
(key)¶Returns an item from the cache
Parameters: | key – Key for the item being requested. |
---|---|
Returns: | Value of item or None if doesn’t exist or expired |
purge
(key)¶Purge an item from the cache, regardless of age
Parameters: | key – Key for the item being removed. |
---|---|
Returns: |
purge_all
()¶Purge all items from the cache, regardless of age
Returns: |
---|
set_cache_period
(age_minutes)¶Define the period of time to cache values for
Parameters: | age_minutes – Number of minutes to cache items for. |
---|---|
Returns: |
update
(key, value)¶Update/Store an item in the cache
Parameters: |
|
---|---|
Returns: |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.