how to execute redis command in shell -


all: want operate redis in shell,my locate redis ip:127.0.0.1 port:6379,i want insert data redis in shell,but don't know how operate redis in own shell,is there redis command mysql -e execute in shell directly.

just use echo redis-cli this:

# delete list of cores echo del cores | redis-cli  # add new core list of cores echo lpush cores 1 | redis-cli   # wait forever core become available echo blpop cores 0 | redis-cli 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -