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
Post a Comment