Closed karabakin closed 4 years ago
Hi @karabakin
I'm sorry, it's a bug... Thanks for finding it!
I've already fixed it. Please try the latest code, and it should be fixed.
Sorry again... Also if you still have any problem with redis-protobuf, feel free to let me know :)
Regards
Works like a charm now, thank you! :)
And could you please suggest how to correctly escape some strange symbols map key name may contain (dots for example):
127.0.0.1:6379> PB.SCHEMA TaskReport
"message TaskReport {\n string id = 1;\n string hostname = 2;\n map<string, int64> report = 3;\n}\n"
127.0.0.1:6379> PB.SET testkey1 TaskReport.report[new_report] 123
(integer) 1
127.0.0.1:6379> PB.SET testkey1 TaskReport.report[new_report.something_strange] 123
(error) ERR field not found: report[new_report
127.0.0.1:6379>
Sorry, but so far, there's no way to do the escape on redis-protobuf side. You have to do the escape manually, and you need to escape the following characters: ., [, ]
However, it's a good idea to do the escape on redis-protobuf side. I opened a new issue to track this problem.
Thanks for this nice suggestion!
Regards
Thank you @sewenew for such quick reply!
Hi! Thank you for such awesome module. Everything is great, but as inexperienced dev i have some troubles with maps:
Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=2273, just started
Any thoughts/suggestions what am i do wrong? Thank you in advance!