9951 explained code solutions for 126 technologies


redisDelete keys by pattern in Redis


redis-cli KEYS "pattern" | xargs redis-cli DELctrl + c
redis-cli

executes Redis command in bash

KEYS

find keys using specified pattern

pattern

patter to search keys based on

xargs

will use output of the left command and pass it to the right comman

DEL

deletes specified keys (will be passed from output of first comman)