Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

redis delete all keys

FLUSHALL
Comment

redis remove key

redis-cli DEL yourkeyhere
Comment

redis delete

redis> SET key1 "Hello"
"OK"
redis> SET key2 "World"
"OK"
redis> DEL key1 key2 key3
(integer) 2
redis>
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 ruby on ubuntu 
Shell :: how to install choclatey using command prompt 
Shell :: get all pods in a node kubectl 
Shell :: google shell 
Shell :: git remove my local changes and pull from master 
Shell :: install steam on ubuntu 
Shell :: cmp in linux 
Shell :: stop tracking git pattern 
Shell :: check file size linux 
Shell :: Reading state information... Done E: Unable to locate package docker-ce 
Shell :: git commit single file 
Shell :: how to start nginx in ubuntu 
Shell :: bash run multiple commands in parallel 
Shell :: how to uncommit the last commit in git 
Shell :: github actions set ssh key 
Shell :: active ssh users in ubuntu 
Shell :: git clone from specific branch command 
Shell :: how to create folder in github 
Shell :: javascript to exe 
Shell :: check litespeed version command 
Shell :: linux command to clean up log files in /var/log 
Shell :: webpack install webpack config 
Shell :: setting docker as a non root user 
Shell :: linux alias 
Shell :: install sdl2 macos 
Shell :: ruby install for mac 
Shell :: create and switch to a branch 
Shell :: how do you merge two git repositories 
Shell :: what does source command do in linux 
Shell :: list files of type txt from cmd 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =