We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo '<pre>'; $redis = new Redis(); $redis->connect('/path/redis.sock'); $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE); $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY); $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_JSON); $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_MSGPACK); $key = 'incr_int'; var_dump($redis->del($key)); var_dump($redis->incr($key)); var_dump($redis->get($key));
redis->get output:
Redis::SERIALIZER_NONE
string(1) "1"
Redis::SERIALIZER_PHP
Redis::SERIALIZER_JSON
int(1)
Redis::SERIALIZER_IGBINARY
Redis::SERIALIZER_MSGPACK
int(49)
type or value sholud be consistent
develop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm seeing this behaviour on
Steps to reproduce, backtrace or example script
Actual behaviour
redis->get output:
Redis::SERIALIZER_NONE
:string(1) "1"
Redis::SERIALIZER_PHP
:string(1) "1"
Redis::SERIALIZER_JSON
:int(1)
Redis::SERIALIZER_IGBINARY
:string(1) "1"
Redis::SERIALIZER_MSGPACK
:int(49)
Expected behaviour
type or value sholud be consistent
I've checked
develop
branchThe text was updated successfully, but these errors were encountered: