log_delete_cache_keys

classmethod CacheManagerMixin.log_delete_cache_keys(*ckeys: str, _lock: Optional[Union[_thread.allocate_lock, Type[privex.helpers.cache.extras.NoLock]]] = None) → Set[str][source]

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, since clear_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 lock cache_key_lock It can also be set to the dummy type NO_LOCK NO_LOCK to prevent using a lock.

Return Set[str] cache_key_log

The cache key log after removing ckeys