Deletion of multiple tables with a single command #12715
Unanswered
Dorababupc
asked this question in
Q&A
Replies: 1 comment
-
|
You can't delete multiple keys directly using the del command which does not support pattern matching. local keys = redis.call('keys', 'VXLAN_INTERFACE|*|1.1.1.1/23')
redis.call('del', unpack(keys))Alternatively, use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to delete multiple tables from a db using the table format name.
For example I have these talbes:
VXLAN_INTERFACE|Vlan10|1.1.1.1/23
VXLAN_INTERFACE|Vlan20|198.12.3.2/32
VXLAN_INTERFACE|Vlan11|1.1.1.1/23
And I want to delete these two using something like : DEL VXLAN_INTERFACE|*|1.1.1.1/23
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions