Can redis protocol allow passing extra attribute,this maybe like mysql hint。 This is very helpful when we develop a redisproxy, or when we expand some function using this attribute.

The attribute maybe traceid, route param etc. Now we use set @@specicalkey specicalvalue set key value . But using this, we should change both the client and the redis server.

Comment From: itamarhaber

Hello @fox1987

If I understand your need correctly, this should be doable with RESP3 which will be in Redis' next version.

Comment From: fox1987

Hello @fox1987

If I understand your need correctly, this should be doable with RESP3 which will be in Redis' next version.

Thanks for your reply. I think what I want may be like this attribute type. https://github.com/antirez/RESP3/blob/master/spec.md#attribute-type I will use this in client request. This attribute is useful for a proxy-logic. While the redis server can ignore this attribute. But I don't know can I use this attribute-type in request, whether the redis-server can ignore this attribute ,only handle the real request. for example: For a set command: set mykey myvalue. I will send this |1 +key-attribute %1 $7 traceid $3 123 *3 $3 SET $5 mykey $7 myvalue And the redis server will only need hand set mykey myvalue. And I can use this key-attribute to add some other tag. Use this I can do some logic before transfer the request to the real redis-server.

Comment From: judeng

@itamarhaber I think you misunderstand his topic. RESP3 looks like only support to add attriute in the response, but @fox1987 actually want to add attribute in the request. I think this is a very practical feature, but the server must also support module that process attribute