remove¶
-
privex.helpers.cache.
remove
(*key: str) → bool[source]¶ Remove one or more keys from the cache.
If all cache keys existed before removal,
True
will be returned. If some didn’t exist (and thus couldn’t remove), thenFalse
will be returned.- Parameters
key (str) – The cache key(s) to remove
- Return bool removed
True
ifkey
existed and was removed- Return bool removed
False
ifkey
didn’t exist, and no action was taken.