MCPcopy
hub / github.com/benoitc/gunicorn / delete

Method delete

gunicorn/dirty/stash.py:221–232  ·  view source on GitHub ↗

Delete a key from a table. Args: table: Table name key: Key to delete Returns: True if key was deleted, False if it didn't exist

(self, table, key)

Source from the content-addressed store, hash-verified

219 return default
220
221 def delete(self, table, key):
222 """
223 Delete a key from a table.
224
225 Args:
226 table: Table name
227 key: Key to delete
228
229 Returns:
230 True if key was deleted, False if it didn't exist
231 """
232 return self._execute(STASH_OP_DELETE, table, key=key)
233
234 def keys(self, table, pattern=None):
235 """

Callers 4

__delitem__Method · 0.80
deleteFunction · 0.80
test_delete_methodMethod · 0.80
logoutMethod · 0.80

Calls 1

_executeMethod · 0.95

Tested by 1

test_delete_methodMethod · 0.64