Open steamboatid opened 3 years ago
The lack of support for OBJECT
is documented at https://github.com/twitter/twemproxy/blob/master/notes/redis.md - I'm not sure what the original reason for it not being supported is (rarely used? inconsistency in having/not having a key?).
It's probably feasible to support it for only known commands with only one key - there's no fragmentation (multiple keys) to worry about it.
127.0.0.1:6379> object encoding value
(nil)
127.0.0.1:6379> object encoding key
"embstr"
127.0.0.1:6379> object encoding key key
(error) ERR Unknown subcommand or wrong number of arguments for 'encoding'. Try OBJECT HELP.
in practical use, KEYS OBJECT only support 3 arguments
OBJECT REFCOUNT <key>
OBJECT ENCODING <key>
OBJECT IDLETIME <key>
OBJECT FREQ <key>
so for the time being, that's enough to support 3 arguments only
Describe the bug I got these error message when execute $redis->object('encoding', $rkey) from php 8 nc_redis.c:1324 parsed unsupported command 'OBJECT'
To Reproduce
Expected behavior $redis->object will return specified encoding from redis/keydb
Screenshots
Environment OS: Debian 10.10 PHP: 8.0 Twemproxy: 0.5.0 (custom build on Debian)
Additional context --none--