开源地址:https://github.com/igorgue/firedis
Mojo编程语言中Redis协议、服务器和客户端的实现。
MOJO = mojo
.PHONY: firedis
firedis:
@echo "[release mode]"
mojo build firedis.🔥
@mkdir -p bin
mv firedis bin/firedis
.PHONY: firedis.debug
firedis.debug:
@echo "[debug mode]"
mojo build --debug-level "full" firedis.🔥
@mkdir -p bin
mv firedis bin/firedis
.PHONY: run
run:
@mojo run firedis.🔥
.PHONY: clean
clean:
rm bin/firedis
.PHONY: test
test:
@$(MOJO) run test.mojo