summaryrefslogtreecommitdiff
path: root/benchmarks/basic_operations.py
Commit message (Collapse)AuthorAgeFilesLines
* remove legacy Redis classAndy McCurdy2018-11-131-1/+1
| | | | | | | | | | | | | | | | | | | redis-py maintained backwards compatibility by keeping the old "Redis" class around for quite some time. While no doubt a convenience for folks who relied on it, the presence of both Redis and StrictRedis causes a number of support issues and general confusion. With 3.0, we're breaking a few things to make redis-py better going forward. This change removes the old Redis class. We also renamed the StrictRedis class to Redis and aliased StrictRedis to Redis. For people that have been using StrictRedis, this should not change anything. You can continue doing things as you are. People still using the legacy Redis class will need to update the argument order for the SETEX, LREM and ZADD commands. Additionally, the return values for TTL and PTTL now return the integer values -1 when a key exists but has no expire time and -2 when a key does not exist. Previously these cases returned a None value in the Redis class.
* Remove explicit position numbers in format strings placeholdersJon Dufresne2018-11-031-1/+1
| | | | All Python versions can handled ordered placeholders.
* pycodestyle changes in benchmarkingRoey Prat2018-10-281-0/+1
|
* pep8 cleanupChris Simpson2016-06-121-0/+2
|
* Cache Token objects to improve performance.Chris Simpson2016-06-121-0/+197
The Token class now contains a cache of tokens, and each token stores its encoded value. In Python 3 this prevents encoding the Token commands (get, set, incr, etc...) repeatly. There is also a smaller performance improvement by creating fewer objects. A very basic benchmark script was also added.