nicolasff/phpredis — Issue #81: Serializing integers
Author: dmitrykuzmenkov
Created: 2011-11-16 09:59:52+00:00
State: open

I use Redis::OPT_SERIALIZER = Redis::SERIALIZER_IGBINARY
So when I'm saving the integer i gotta serialized it.

And In redis-cli enviroment get:

> get relation:1:82
"\x00\x00\x00\x02\x06\x01"

(its values: 1)

But when i do increment this one key i got not serialized data and incremented from zero (not 1, as this key contained)
> get relation:1:82
"1"

So may be its bug or not but may be no need to serialize int/float etc types?

Also i cant get sort by key becauze integers are serialized and i must turn off it to take effect.