40 Commits

Author SHA1 Message Date
Dvir Volk
2cc3a7c38f fixed comment 2016-05-10 06:40:10 +02:00
Dvir Volk
c78198c2af second attempt at vector formtting 2016-05-10 06:40:10 +02:00
antirez
5aa1a12238 Modules: add ZADD_INCR flag to zset increment API. 2016-05-10 06:40:10 +02:00
Itamar Haber
8d85ee46c8 typo: %s/Emtpy/Empty/g 2016-05-10 06:40:10 +02:00
antirez
8ff424c77f Modules: command <-> core interface modified to get flags & keys. 2016-05-10 06:40:09 +02:00
Ramon Snir
796babd883 tiny typo in Redis Modules API documentation 2016-05-10 06:40:09 +02:00
Dvir Volk
f8a6c1a127 fixed return value of HashGet (and a slight error in the documentation) 2016-05-10 06:40:09 +02:00
antirez
e147db3f80 Modules: Hash API defines made more uniform. 2016-05-10 06:40:09 +02:00
antirez
efddfedc5d Modules: Hash type API WIP #2. 2016-05-10 06:40:09 +02:00
antirez
b1778b855d Modules: Hash type API WIP #1. 2016-05-10 06:40:09 +02:00
antirez
415e58b0b7 Modules: a few fixes for the zset iterator. 2016-05-10 06:40:09 +02:00
antirez
6c6be5136c Modules: postponed array lengths. 2016-05-10 06:40:09 +02:00
antirez
46ea6fd58b Modules: zset lex iterator #3. 2016-05-10 06:40:09 +02:00
antirez
0f148accb2 Modules: zset lex iterator #2. 2016-05-10 06:40:09 +02:00
antirez
27ba85c022 Modules: zset lex iterator #1. 2016-05-10 06:40:08 +02:00
antirez
5b8a856d14 Modules: zset iterator redesign #1. 2016-05-10 06:40:08 +02:00
antirez
3c2493cad7 Modules: fix top comments to be user-facing doc quality. About 33% done. 2016-05-10 06:40:08 +02:00
antirez
073e9a3213 Modules: sorted set iterators WIP #3. 2016-05-10 06:40:08 +02:00
antirez
8b6c57b05e Modules: put zset iterator current element in auto memory pool. 2016-05-10 06:40:08 +02:00
antirez
f254c9747d Modules: sorted set iterators WIP #2. 2016-05-10 06:40:08 +02:00
antirez
d43b5498f4 Modules: sorted set iterators WIP. 2016-05-10 06:40:08 +02:00
antirez
b3df9e2ded Remove useless space. 2016-05-10 06:40:08 +02:00
antirez
cfd4c3df7a Modules: ZSET API WIP #4. 2016-05-10 06:40:07 +02:00
antirez
b3c26b672a Modules: ZSET API WIP #3. 2016-05-10 06:40:07 +02:00
antirez
29ae2a13c7 Modules: ZSET API WIP #2. 2016-05-10 06:40:07 +02:00
antirez
760ec75e45 Modules: ZSET API WIP. 2016-05-10 06:40:07 +02:00
antirez
2154600f4d Modules: expire API and documentation. 2016-05-10 06:40:07 +02:00
antirez
2deb684011 Modules: RedisModule_ReplyWithCallReply(). 2016-05-10 06:40:07 +02:00
Sun He
336bd45b8a modules/RM_StringTruncate: correct reallocate condition 2016-05-10 06:40:06 +02:00
Sun He
fdc854f20e modules/RM_OpenKey: avoid decrRefCount obj twice 2016-05-10 06:40:06 +02:00
Sun He
bf1a285e5b modules/RM_StringSet: set key->value 2016-05-10 06:40:06 +02:00
Sun He
9cf8b07b93 modules: correct protolen 2016-05-10 06:40:06 +02:00
antirez
b7d1c9655a Add the last break for consistency in moduleCreateCallReplyFromProto. 2016-05-10 06:40:06 +02:00
Dvir Volk
beb69e1c42 fixed case in moduleCreateCallReplyFromProto 2016-05-10 06:40:06 +02:00
Dvir Volk
e5058b25f9 renamed RedisModule_ReplyWithNull to RM_ReplyWithNull to fix compilation 2016-05-10 06:40:06 +02:00
antirez
73c12d9faa Modules: RedisModule_ReplyWithNull() implemented. 2016-05-10 06:40:06 +02:00
Yossi Gottlieb
33da1d0ac1 Log loadmodule dlopen() errors. 2016-05-10 06:40:06 +02:00
antirez
b72253dd51 Modules: avoid conflict between modules func pointers and dynamic symbols.
In modules we fill a set of function pointers defined in redismodule.h,
populating a set of APIs that are callable from the module. We use this
manual process instead of resorting to dynamic linking so that we have
exact control on how we pass the API to the module, and we can even pass
different functions for the same name, depending on the API version
declared by the module.

However if the function pointers in redismodule.h and the functions
defined in module.c have the same name, they conflict since the core
exports the symbols to the module.

There is probably some compiler flags trick to avoid this, but in order
to be safer in the future and be more easily compatible with different
builidng systems, this commit changes the internal function prefix from
RedisModule_ to RM_, so for example:

    RM_StringSet() will be exported as RedisModule_StringSet()
2016-05-10 06:40:05 +02:00
antirez
bceb78814d Modules: remove warnings due to void/function pointer conversion. 2016-05-10 06:40:05 +02:00
antirez
83fe739fb6 Modules: first preview 31 March 2016. 2016-05-10 06:40:05 +02:00