you can now add comments to your redis-cli script

628 views
Skip to first unread message

Adam Lev-Libfeld

unread,
Nov 23, 2016, 3:22:07 AM11/23/16
to redis-mo...@googlegroups.com

so.. I was creating a redis-cli script to demonstrate my module, and didn’t find any way to add comments to the script. So as an added bonus I wrote an elaborate module to add that feature:
https://github.com/picotera/commentDis

you run it using:

/path/to/redis-server --loadmodule path/to/your/module.so --loadmodule path/to/comment/module.so

Enjoy!


Adam Lev-Libfeld / Tamar Tech

Dvir Volk

unread,
Nov 23, 2016, 3:57:29 AM11/23/16
to redis-module-devs
That's a very cute idea. Thanks Adam!

Salvatore Sanfilippo

unread,
Nov 23, 2016, 4:14:29 AM11/23/16
to Adam Lev-Libfeld, redis-module-devs
Alternatively you could use the PING (in newer releases) or ECHO (everywhere) commands.

ECHO "Setting foo to bar"
SET foo bar

--
You received this message because you are subscribed to the Google Groups "redis-module-devs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-module-devs+unsubscribe@googlegroups.com.
To post to this group, send email to redis-module-devs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-module-devs/CAJ7N2ZDfr%2BiK6RFYDw6_xDmAfNU6%3D6dyUP2HKJqLpo9nj9CWWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com

"If a system is to have conceptual integrity, someone must control the concepts."
       — Fred Brooks, "The Mythical Man-Month", 1975.

Dvir Volk

unread,
Nov 23, 2016, 5:50:13 AM11/23/16
to Salvatore Sanfilippo, Adam Lev-Libfeld, redis-module-devs
yeah but where is the fun in that? ;)

On Wed, Nov 23, 2016 at 11:14 AM Salvatore Sanfilippo <ant...@gmail.com> wrote:
Alternatively you could use the PING (in newer releases) or ECHO (everywhere) commands.

ECHO "Setting foo to bar"
SET foo bar
On Wed, Nov 23, 2016 at 9:22 AM, Adam Lev-Libfeld <ad...@tamarlabs.com> wrote:

so.. I was creating a redis-cli script to demonstrate my module, and didn’t find any way to add comments to the script. So as an added bonus I wrote an elaborate module to add that feature:
https://github.com/picotera/commentDis

you run it using:

/path/to/redis-server --loadmodule path/to/your/module.so --loadmodule path/to/comment/module.so

Enjoy!


Adam Lev-Libfeld / Tamar Tech

--
You received this message because you are subscribed to the Google Groups "redis-module-devs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-module-d...@googlegroups.com.
To post to this group, send email to redis-mo...@googlegroups.com.
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com

"If a system is to have conceptual integrity, someone must control the concepts."
       — Fred Brooks, "The Mythical Man-Month", 1975.

--
You received this message because you are subscribed to the Google Groups "redis-module-devs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-module-d...@googlegroups.com.
To post to this group, send email to redis-mo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-module-devs/CA%2BXzkVd9yr64zKPR%2BWz9%2B9dtkKun3o%2BAdqHUBPXE0NARoP2OBw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages