Commit Graph

103 Commits

Author SHA1 Message Date
95c17c0cb2 Modules: AbortBlock() API implemented. 2016-10-13 16:57:40 +02:00
58601c8f7d Modules: blocking API documented. 2016-10-13 16:57:28 +02:00
870274bea8 Example modules: remove warnings about types and not used args. 2016-10-13 12:43:18 +02:00
7dde8bf3ab Modules: blocking command example added. 2016-10-07 16:35:06 +02:00
ffb00fbcbe Modules: blocking commands WIP: API exported, a first example. 2016-10-07 13:48:14 +02:00
3aa816e61a Modules: introduce warning suppression macro for unused args. 2016-10-07 13:10:31 +02:00
3879923db8 Enable warning in example modules Makefile. 2016-10-07 13:07:13 +02:00
0d9febf6a0 Add compiler optimizations to example module makefile. 2016-10-02 11:01:36 +02:00
a91650fc57 added RM_CreateStringPrintf 2016-09-21 12:30:38 +03:00
56dba3adcc Example modules: Add C99 standard to cflags. 2016-09-09 16:01:29 +02:00
e7f1798179 Modules: basic call/reply tests in test module. 2016-08-03 18:10:11 +02:00
04340e1ff1 Modules: initial draft for a testing module. 2016-08-03 10:23:03 +02:00
7829e4ed2c Modules: StringAppendBuffer() and ability to retain strings.
RedisModule_StringRetain() allows, when automatic memory management is
on, to keep string objects living after the callback returns. Can also
be used in order to use Redis reference counting of objects inside
modules.

The reason why this is useful is that sometimes when implementing new
data types we want to reference RedisModuleString objects inside the
module private data structures, so those string objects must be valid
after the callback returns even if not referenced inside the Redis key
space.
2016-08-02 15:29:04 +02:00
9424fe4580 Remove extra "-" from ASCII horizontal bar in comment. 2016-08-02 10:32:44 +02:00
18983113c5 Modules: mention RedisModule_Calloc() in the doc. 2016-06-23 16:20:48 +02:00
28ea585fce Merge pull request #3336 from yossigo/create_string_from_string
Add RedisModule_CreateStringFromString().
2016-06-23 16:16:28 +02:00
4b12c6a360 Modules: changes to logging function.
This commit changes what provided by PR #3315 (merged) in order to
let the user specify the log level as a string.

The define could be also used, but when this happens, they must be
decoupled from the defines in the Redis core, like in the other part of
the Redis modules implementations, so that a switch statement (or a
function) remaps between the two, otherwise we are no longer free to
change the internal Redis defines.
2016-06-23 12:11:30 +02:00
715794b829 Add RedisModule_Log() logging API function. 2016-06-23 12:01:44 +02:00
61172ed01e Add RedisModule_CreateStringFromString(). 2016-06-22 21:02:40 +03:00
4e10b08fb3 Modules doc: hint about replacing libc malloc calls. 2016-06-22 15:24:51 +02:00
bd2cd7059a Merge pull request #3281 from jamespedwards42/unstable
Fix modules intro typos.
2016-06-15 12:51:15 +02:00
5ba9bdec75 Modules: document how to pass config params to modules.
Related to #3293.
2016-06-13 10:05:28 +02:00
5831dd860a Fix example modules to have the right OnLoad() prototype.
Related to #3293.
2016-06-13 09:57:19 +02:00
e71f22f5f2 Fix typo: after -> before. 2016-06-10 10:39:38 +02:00
e4567f243b Explain why module type names are 9 chars. 2016-06-10 10:36:09 +02:00
550fa7e14f modules API.md updated. 2016-06-04 12:55:39 +02:00
c3f5b6ebf9 Modules: native types doc, 70% done. 2016-06-04 12:54:18 +02:00
5830d8821b Modules: pool allocator doc. 2016-06-03 18:32:35 +02:00
31eb8eccef Modules: top comments in helloworld.c and hellotype.c. 2016-06-03 18:19:31 +02:00
8ec28002be Modules: support for modules native data types. 2016-06-03 18:14:04 +02:00
3432061cbb Fix modules intro typos. 2016-05-29 15:53:24 -07:00
9aff564045 Modules: initial pool allocator and a LEFTPAD usage example. 2016-05-14 19:42:31 +02:00
646c958bbd Modules: doc layout improved. 2016-05-10 18:54:58 +02:00
745845df0a Modules doc: mention the functions not yet documented. 2016-05-10 15:50:21 +02:00
909a707b72 vector of strings is implemented now 2016-05-10 06:40:10 +02:00
227d68094b Modules: command <-> core interface modified to get flags & keys. 2016-05-10 06:40:09 +02:00
02c4a6c7f9 Modules: REDISMODULE_POSTPONED_ARRAY_LEN doc. 2016-05-10 06:40:09 +02:00
42f72210fd Modules: Hash API defines made more uniform. 2016-05-10 06:40:09 +02:00
9b0556cf10 Modules: Hash type API WIP #2. 2016-05-10 06:40:09 +02:00
10993ca0d5 Modules: Hash type API WIP #1. 2016-05-10 06:40:09 +02:00
5bf5fd24c6 Modules: a few fixes for the zset iterator. 2016-05-10 06:40:09 +02:00
00109e1113 Modules: zset lex iterator #3. 2016-05-10 06:40:09 +02:00
083f5277c5 Modules: zset iterator redesign #1. 2016-05-10 06:40:08 +02:00
d998170809 Simple Ruby script to generate reference doc added. 2016-05-10 06:40:08 +02:00
f362f7a18a Modules: sorted set iterators WIP #3. 2016-05-10 06:40:08 +02:00
eac5a13cb7 Modules: sorted set iterators WIP. 2016-05-10 06:40:08 +02:00
f199504ac9 Modules: ZSET API WIP. 2016-05-10 06:40:07 +02:00
11b3df24cb Modules: expire API and documentation. 2016-05-10 06:40:07 +02:00
f4e0129fa9 Modules: RedisModule_ReplyWithCallReply(). 2016-05-10 06:40:07 +02:00
6054089fa8 Stops SPLICE from accepting negative counts 2016-05-10 06:40:07 +02:00