嗨,各位,
上次在邮件组提到我们的开源项目 SimBase,大家有一些意见,但我没有回复。
因为我们有改版的计划。这次改版吸收了大家的意见。
新版本的概念模型和命令集合:
https://github.com/guokr/simbase/blob/develop/README.md
目前我们正在开发之中,好多代码都完全重写。
服务器的代码借鉴了沈峰的 httpkit (因为代码没完成,Apache License 会随后补上)
希望大家多指正。
明理
Setup
> bmk b2048 t1 t2 t3 ... t2047 t2048
> vmk b2048 article
> vmk b2048 userprofile
> rmk userprofile article cosinesq
Fill data
> vadd article 1 0.11 0.112 0.1123...
> vadd article 2 0.21 0.212 0.2123...
...
> vadd userprofile 1 0.11 0.112 0.1123...
> vadd userprofile 2 0.21 0.212 0.2123...
...
Query
> rrec userprofile 2 article
Python example
import redis dest = redis.Redis(host='localhost', port=7654) schema = ['a', 'b', 'c'] dest.execute_command('bmk', 'ba', *schema) dest.execute_command('vmk', 'ba', 'va') dest.execute_command('rmk', 'va', 'va', 'cosinesq')
Node.js example
var redis = require("redis"), client = redis.createClient(7654, 'localhost'); client.send_command('bmk', ['ba', 'a', 'b', 'c']) client.send_command('vmk', ['ba', 'va']) client.send_command('rmk', ['va', 'va', 'cosinesq'])
--
中文社区博客:http://blog.clojure.cn/
中文问答网站:http://ask.clojure.cn/
中文邮件列表:https://groups.google.com/d/forum/cn-clojure?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“CN-Clojure”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到cn-clojure+...@googlegroups.com。
要发帖到此论坛,请发送电子邮件至cn-cl...@googlegroups.com。
通过http://groups.google.com/group/cn-clojure访问此论坛。
要查看更多选项,请访问https://groups.google.com/d/optout。