【文件属性】:
文件名称:redis-rpc:使用Redis的pubsub的通用Lisp RPC客户端
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-17 05:56:21
CommonLisp
redis-rpc
redis-rpc提供了一个便民接口,可将redis用作rpc代理。 我将其构建为与节点服务器通信,以将JavaScript模板呈现为Lisp进程。
使用它
start
(redis-rpc:start " response_channel " )
call
通过channel调用rpc函数,并将args传递给它。
(redis-rpc:call " request_channel " " function_call "
( lambda (message) (getf :|content| message))
4 " banana " )
所以,如果我们的远程功能看起来像
( defun function_call (num word)
( format nil " ~d ~as " num word))
然后, lambda应该返回“ 4根
【文件预览】:
redis-rpc-master
----package.lisp(89B)
----redis-rpc.lisp(1KB)
----README.md(621B)
----redis-rpc.asd(342B)