kif_lib.cache.Cache.unset#

Cache.unset(obj: Hashable, key: str | None = None) Any[source]#

Detaches value from object.

If key is None, detaches all values from object and removes object from cache.

Parameters:
  • obj – Object.

  • key – Key or None.

Returns:

The detached value or None.