LINUX: redis-cli remove keys by wildcard

1
2
#!/bin/bash
redis-cli keys $1 | awk '{print $1}' | xargs --interactive redis-cli del {} \;

How to use:

redis-del pattern*

Source


Comments

comments powered by Disqus