Giter VIP home page Giter VIP logo

uq's People

Contributors

buaazp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uq's Issues

python client support and two minor issues

hi, buaazp. I implemented a python client for uq and have made a pull request here. Besides I found two minor issues about protocol compatibility during developing. Some FAQ in document may be better.

  1. the func (r *RedisEntry) onQmdel(cmd *command) *reply (https://github.com/buaazp/uq/blob/master/entry/redisQueue.go#L101) function returns OK if a line is deleted successfully, while the standard redis DEL command returns the number of keys that were removed.
  2. the get foo/x id command in memcache-protocol requires the the first parameter of get is the line name. While some memcached client may not preserve the key order.

I have the following problem, can you help resolve?

go get -u github.com/buaazp/uq

github.com/coreos/go-etcd/etcd

/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:99:6: r.EncodeArrayStart undefined (type codec.genHelperEncDriver has no field or method EncodeArrayStart)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:107:6: r.EncodeMapStart undefined (type codec.genHelperEncDriver has no field or method EncodeMapStart)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:111:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:119:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:121:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:130:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:142:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:144:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:157:6: z.EncSendContainerState undefined (type codec.genHelperEncoder has no field or method EncSendContainerState)
/root/.gopath/src/github.com/coreos/go-etcd/etcd/response.generated.go:170:6: z.EncSendContainerS

topic必须要有line才能工作

如果直接add一个topic但是不add一个line的话,set新增一个消息可以成功,直接gettopic会失败:

192.168.0.7:8808> add foo1
OK
192.168.0.7:8808> set foo1 askdl;askd;lasd
OK
192.168.0.7:8808> get foo1
(error) 104 Bad Key Format (pop key parts error: 1)

只有一个line清空line后会清空整个topic

清空一个line后一会整个topic都清空了:
127.0.0.1:8800> add test
OK
127.0.0.1:8800> add test/a 10s
OK
127.0.0.1:8800> set test a
OK
127.0.0.1:8800> set test b
OK
127.0.0.1:8800> empty test/a
OK
127.0.0.1:8800> info test
name:test
head:0
tail:2
count:2 此时正常

name:test/a
recycle:10s
head:2
ihead:2
tail:2
count:0
127.0.0.1:8800> info test 等待一会再执行
name:test
head:2
tail:2
count:0 此时就空了

name:test/a
recycle:10s
head:2
ihead:2
tail:2
count:0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.