https://github.com/mattsta/krmt#building
cd $HOME/repos/redis && src/redis-server
output: note the first line listing modules loaded 🍻
6948:C 26 Feb 22:09:47.922 * Module [<builtin>] loaded 163 commands.
6948:C 26 Feb 22:09:47.922 # Warning: no config file specified, using the default config. In order to specify a config file use $ src/redis-server /path/to/redis.conf
6948:M 26 Feb 22:09:47.924 * Increased maximum number of open files to 10032 (it was originally set to 4864).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.9.999 (e6d3efc8/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 6948
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
6948:M 26 Feb 22:09:47.926 # Server started, Redis version 2.9.999
6948:M 26 Feb 22:09:47.927 * DB loaded from disk: 0.000 seconds
6948:M 26 Feb 22:09:47.927 * The server is now ready to accept connections on port 6379
You can ask about the modules with your shiney new section in the info for modules
redis-cli info modules
# find a module of interest `redis-cli info modules | tr ',' '\n' | grep module_of_interest
load the geo.so
module
redis-cli config set module-add $HOME/repos/krmt/geo.so
OK
redis-server output:
7450:M 26 Feb 22:27:40.823 * Loading new [/Users/mmcdaris/repos/krmt/geo.so] module.
7450:M 26 Feb 22:27:40.823 * Added command geoadd [/Users/mmcdaris/repos/krmt/geo.so]
7450:M 26 Feb 22:27:40.823 * Added command georadius [/Users/mmcdaris/repos/krmt/geo.so]
7450:M 26 Feb 22:27:40.824 * Added command georadiusbymember [/Users/mmcdaris/repos/krmt/geo.so]
7450:M 26 Feb 22:27:40.824 * Added command geoencode [/Users/mmcdaris/repos/krmt/geo.so]
7450:M 26 Feb 22:27:40.824 * Added command geodecode [/Users/mmcdaris/repos/krmt/geo.so]
7450:M 26 Feb 22:27:40.824 * Module [/Users/mmcdaris/repos/krmt/geo.so] loaded 5 commands.
7450:M 26 Feb 22:27:40.824 * Running load function of module [/Users/mmcdaris/repos/krmt/geo.so].