MCPcopy
hub / github.com/django/django / delete

Method delete

django/core/cache/backends/base.py:182–189  ·  view source on GitHub ↗

Delete a key from the cache and return whether it succeeded, failing silently.

(self, key, version=None)

Source from the content-addressed store, hash-verified

180 )
181
182 def delete(self, key, version=None):
183 """
184 Delete a key from the cache and return whether it succeeded, failing
185 silently.
186 """
187 raise NotImplementedError(
188 "subclasses of BaseCache must provide a delete() method"
189 )
190
191 async def adelete(self, key, version=None):
192 return await sync_to_async(self.delete, thread_sensitive=True)(key, version)

Callers 2

delete_manyMethod · 0.95
incr_versionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected