clear_set
async def clear_set(keys: dict) -> int
Param | Description |
---|---|
keys | The new keys stored after the existing keys are deleted |
Deletes all keys then sets new keys in a single call.
Returns
The number of keys deleted.
Raises
ResponseError
Examples
nKeysDeleted = await kv.clear_set({'stats_total':0, 'stats_visitors':0, 'stats_blocked':0})