Closed wuaoo closed 8 years ago
This is an expected behavior. Redis itself doesn't make a distinction between string and number types. txredisapi tries to guess the type if convertNumbers
is set to True
(this is the default). So, if you set a number-like string, you will get back an integer.
You can disable this auto-converting by adding convertNumbers=False
to lazyConnectionPool(...)
. But in this case you will always get a string, even if you wrote an integer.
Thinks, very much!
👍
python_version = 2.7.10 txredisapi_version = 2.4.3