- 17 4月, 2014 4 次提交
- 16 4月, 2014 1 次提交
-
-
由 antirez 提交于
Like ZCOUNT for lexicographical ranges.
-
- 05 4月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 05 12月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 05 11月, 2013 1 次提交
-
-
由 antirez 提交于
The previous implementation of SCAN parsed the cursor in the generic function implementing SCAN, SSCAN, HSCAN and ZSCAN. The actual higher-level command implementation only checked for empty keys and return ASAP in that case. The result was that inverting the arguments of, for instance, SSCAN for example and write: SSCAN 0 key Instead of SSCAN key 0 Resulted into no error, since 0 is a non-existing key name very likely. Just the iterator returned no elements at all. In order to fix this issue the code was refactored to extract the function to parse the cursor and return the error. Every higher level command implementation now parses the cursor and later checks if the key exist or not.
-
- 28 10月, 2013 2 次提交
- 19 8月, 2013 2 次提交
-
-
由 antirez 提交于
Related to issue #1240.
-
由 antirez 提交于
This commit does mainly two things: 1) It fixes zunionInterGenericCommand() by removing mass-initialization of all the iterators used, so that we don't violate the unsafe iterator API of dictionaries. This fixes issue #1240. 2) Since the zui* APIs required the allocator to be initialized in the zsetopsrc structure in order to use non-iterator related APIs, this commit fixes this strict requirement by accessing objects directly via the op->subject->ptr pointer we have to the object.
-
- 22 7月, 2013 1 次提交
-
-
由 antirez 提交于
Previously two string encodings were used for string objects: 1) REDIS_ENCODING_RAW: a string object with obj->ptr pointing to an sds stirng. 2) REDIS_ENCODING_INT: a string object where the obj->ptr void pointer is casted to a long. This commit introduces a experimental new encoding called REDIS_ENCODING_EMBSTR that implements an object represented by an sds string that is not modifiable but allocated in the same memory chunk as the robj structure itself. The chunk looks like the following: +--------------+-----------+------------+--------+----+ | robj data... | robj->ptr | sds header | string | \0 | +--------------+-----+-----+------------+--------+----+ | ^ +-----------------------+ The robj->ptr points to the contiguous sds string data, so the object can be manipulated with the same functions used to manipulate plan string objects, however we need just on malloc and one free in order to allocate or release this kind of objects. Moreover it has better cache locality. This new allocation strategy should benefit both the memory usage and the performances. A performance gain between 60 and 70% was observed during micro-benchmarks, however there is more work to do to evaluate the performance impact and the memory usage behavior.
-
- 29 1月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 28 1月, 2013 2 次提交
-
-
由 antirez 提交于
When keyspace events are enabled, the overhead is not sever but noticeable, so this commit introduces the ability to select subclasses of events in order to avoid to generate events the user is not interested in. The events can be selected using redis.conf or CONFIG SET / GET.
-
由 antirez 提交于
-
- 19 1月, 2013 1 次提交
-
-
由 guiquanz 提交于
-
- 22 11月, 2012 1 次提交
-
-
由 antirez 提交于
This fixes issue #761.
-
- 09 11月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 23 5月, 2012 1 次提交
-
-
由 antirez 提交于
Weeks ago trying to fix an harmless GCC warning I introduced a bug in the ziplist-encoded implementations of sorted sets. The bug completely broke zuiNext() iterator, that is used in the ZINTERSTORE and ZUNIONSTORE implementation, so those two commands are no longer reliable starting from Redis version 2.4.12 and latest 2.6.0-RC releases. This commit fixes the problem and adds a regression test.
-
- 24 4月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 22 2月, 2012 1 次提交
-
-
由 antirez 提交于
zzlIsInRange() now is capable of handling empty sorted sets that may end inside the data set when loading very old RDB files produced by early-stage versions of Redis.
-
- 21 2月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 16 1月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 12 1月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 23 12月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 19 12月, 2011 1 次提交
-
-
由 BigCat 提交于
Using `getLongFromObjectOrReply` instead of `atoi` if possible. The following functions are modified. * lrangeCommand * ltrimCommand * lremCommand * lindexCommand * lsetCommand * zunionInterGenericCommand * genericZrangebyscoreCommand * sortCommand
-
- 18 12月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 14 11月, 2011 1 次提交
-
-
由 antirez 提交于
string to number API is now more strict not accepting spaces before or after the number. A few tests converted to match the new error messages using the word float instead of double.
-
- 09 11月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 23 10月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 05 10月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 03 10月, 2011 2 次提交
-
-
由 Pieter Noordhuis 提交于
-
由 Pieter Noordhuis 提交于
-
- 01 6月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 31 5月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 24 5月, 2011 1 次提交
-
-
由 antirez 提交于
-
- 19 5月, 2011 2 次提交
- 15 5月, 2011 1 次提交
-
-
由 antirez 提交于
-