Delete a key from the cache and return whether it succeeded, failing silently.
(self, key, version=None)
| 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) |
no outgoing calls
no test coverage detected