Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

redis delete all keys

FLUSHALL
Comment

redis delete key

redis-cli DEL yourkeyhere
Comment

redis delete keys by pattern

This one is working for big number of keys: 
EVAL "local keys = redis.call('keys', ARGV[1]) 
 for i=1,#keys,5000 do 
 redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) 
 end 
 return keys" 0 prefix:*
Comment

PREVIOUS NEXT
Code Example
Shell :: install tar.xz in ubuntu 20.4 
Shell :: plesk clear mail queue 
Shell :: install fleetssl 
Shell :: git discard all local changes 
Shell :: git rename local branch 
Shell :: download nodejs debian linux 
Shell :: pass parameters to bash script 
Shell :: cmd flutter doctor says android studio is not installed 
Shell :: change crontab editor 
Shell :: height not divisible by 2 (3308x1975) Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height 
Shell :: whereis alpine 
Shell :: install nginx ubuntu 
Shell :: extend recording time in ubuntu 
Shell :: which equivalent powershell 
Shell :: ionic capacitor motion 
Shell :: install and import gsap in vue 
Shell :: clone a particular branch 
Shell :: linux change owner 
Shell :: git alias - multiple commands 
Shell :: scp local to remote 
Shell :: linux command to clean up log files 
Shell :: php install extension 
Shell :: log cpu usage on linux 
Shell :: how to create alias in linux 
Shell :: bash loading bar spinner in bash shell script 
Shell :: download latest docker-compose 
Shell :: fetch fork github 
Shell :: git merge branch without merge ocmmit 
Shell :: linux source command vs dot 
Shell :: open tar.Z files 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =