From cf1cd4e03077cb0a3387980818853695abdc0d02 Mon Sep 17 00:00:00 2001 From: Mohamed Al Ashaal Date: Sat, 22 Dec 2018 02:46:59 +0200 Subject: [PATCH] updated the readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e5220e8..ac796b0 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,16 @@ $ redis-cli -p 6380 hset mymap1 x y 10000 # i.e: sha512 of "test" $ redis-cli -p 6380 encode sha512 test +# you want to notify an endpoint i.e: "http://localhost:800/new-data" that there is new data available, in other words, you want to subscribe a webhook to channel updates. +$ redis-cli -p 6380 webhookset testchan http://localhost:800/new-data + +# add data to a list +# i.e: [].push(....) +$ redis-cli -p 6380 lpush mylist1 "I'm Mohammed" "I like to Go using Go" "I love coding" + +# search in the list +$ redis-cli -p 6380 lsrch mylist1 "mo(.*)" + ``` Supported Commands