3 Add Redis commands execution support in Org-mode Babel.
5 This package is referenced from [[https://github.com/krisajenkins/ob-mongo][ob-mongo.el]].
11 #+begin_src emacs-lisp
15 :commands (org-babel-execute:redis)
17 (add-to-list 'org-babel-load-languages '(redis . t))
18 (org-babel-do-load-languages 'org-babel-load-languages org-babel-load-languages)
19 (add-to-list 'org-babel-tangle-lang-exts '("redis" . "redis")))
24 #+begin_src emacs-lisp
26 :quelpa (ob-redis :fetcher github :repo "stardiviner/ob-redis")
28 :commands (org-babel-execute:redis)
30 (add-to-list 'org-babel-load-languages '(redis . t))
31 (org-babel-do-load-languages 'org-babel-load-languages org-babel-load-languages)
32 (add-to-list 'org-babel-tangle-lang-exts '("redis" . "redis")))
40 ,#+begin_src redis db: 127.0.0.1:6379
41 SET myname "stardiviner"
47 : 127.0.0.1:6379> stardiviner
53 The babel header argument ~db:~ can specify your redis server ip address.