keystone.common.cache package

Submodules

keystone.common.cache.core module

Keystone Caching Layer Implementation.

class keystone.common.cache.core.DistributedInvalidationStrategy(region_manager)[source]

Bases: dogpile.cache.region.RegionInvalidationStrategy

invalidate(hard=None)[source]
is_hard_invalidated(timestamp)[source]
is_invalidated(timestamp)[source]
is_soft_invalidated(timestamp)[source]
was_hard_invalidated()[source]
was_soft_invalidated()[source]
class keystone.common.cache.core.RegionInvalidationManager(invalidation_region, region_name)[source]

Bases: object

REGION_KEY_PREFIX = '<<<region>>>:'
invalidate_region()[source]
is_region_key(key)[source]
region_id
keystone.common.cache.core.configure_cache(region=None)[source]
keystone.common.cache.core.configure_invalidation_region()[source]
keystone.common.cache.core.create_region(name)[source]

Create a dopile region.

Wraps oslo_cache.core.create_region. This is used to ensure that the Region is properly patched and allows us to more easily specify a region name.

Parameters:name (str) – The region name
Returns:The new region.
Return type:dogpile.cache.region.CacheRegion
keystone.common.cache.core.get_memoization_decorator(group, expiration_group=None, region=None)[source]
keystone.common.cache.core.key_mangler_factory(invalidation_manager, orig_key_mangler)[source]

Module contents