Keystone Caching Layer Implementation.
Bases: RegionInvalidationStrategy
Region invalidation.
CacheRegion propagated call.
The default invalidation system works by setting
a current timestamp (using time.time()) to consider all older
timestamps effectively invalidated.
Check timestamp to determine if it was hard invalidated.
Boolean. True if timestamp is older than
the last region invalidation time and region is invalidated
in hard mode.
Check timestamp to determine if it was invalidated.
Boolean. True if timestamp is older than
the last region invalidation time.
Check timestamp to determine if it was soft invalidated.
Boolean. True if timestamp is older than
the last region invalidation time and region is invalidated
in soft mode.
Bases: object
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.
name (str) – The region name
The new region.
dogpile.cache.region.CacheRegion
Return whether key has already been recorded in region.
Check this before honoring a one-time-use value (nonce, passcode,
receipt, …), then call mark_used() once it is consumed.
region – a configured dogpile CacheRegion.
key – the identifying string for the one-time-use value.
expiration_time – seconds to honor a recorded value for,
overriding the region’s own expiration_time. Pass the value’s
real validity window plus a margin, so protection isn’t at the
mercy of an operator’s general-purpose [cache] expiration_time.
True if key was already recorded (a replay).
Record key in region for a later is_replay() check.
Expiration is enforced on the read side by is_replay().
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.