log_cache_key

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

Add a cache key name to the cache key log cache_key_log_name. This usually doesn’t need to be called from outside of this class, since most methods which may add or edit a cache key should also insert/update the key into the cache key log.

Parameters
  • key (str) – The key to add to 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 adding ckeys