redis.set("key1", "Hello") redis.set("key2", "World") redis.delete("key1", "key2") assert redis.get("key1") is None assert redis.get("key2") is None
Removes the specified keys. A key is ignored if it does not exist.
One or more keys to remove.
The number of keys that were removed.
Was this page helpful?