log_delete_cache_key¶
-
classmethod
CacheManagerMixin.
log_delete_cache_key
(*ckeys: str, _lock: Optional[Union[_thread.allocate_lock, Type[privex.helpers.cache.extras.NoLock]]] = None) → Set[str]¶ Remove one or more cache key names from the cache key log
cache_key_log_name
. This usually doesn’t need to be called from outside of this class, sinceclear_cache_keys()
automatically removes any logged cache key names after deleting the cache key itself from the global cache.- Parameters
ckeys (str) – One or more cache keys to remove from the cache key log
_lock (ANY_LCK) – You may optionally pass a
Lock
instance if needed, e.g. to prevent a conflict where the calling function/method has already acquired the class-level lockcache_key_lock
It can also be set to the dummy typeNO_LOCK
NO_LOCK
to prevent using a lock.
- Return Set[str] cache_key_log
The cache key log after removing
ckeys