antirez
d7faf88f39
Modules Cluster API: make node IDs pointers constant.
2018-03-30 13:16:07 +02:00
antirez
9aa6ac8867
Modules Cluster API: fix new API calls exporting.
2018-03-30 12:49:16 +02:00
antirez
d0bf651ff9
Modules Cluster API: sending / receiving API first implementation.
2018-03-30 11:06:08 +02:00
Dvir Volk
d3abc6e3ae
Add REDISMODULE_NOTIFY_STREAM flag to support stream notifications
2018-02-14 21:50:42 +02:00
Dvir Volk
053941b983
finished implementation of notifications. Tests unfinished
2018-02-14 21:38:58 +02:00
Mark Nunberg
eb80bec044
redismodule.h: Check ModuleNameBusy before calling it
...
Older versions might not have this function.
2018-01-23 10:49:18 -05:00
Dvir Volk
f47914ea05
Added RM_UnlinkKey - a low level analog to UNLINK command
2018-01-07 16:41:43 +02:00
Salvatore Sanfilippo
4394eedf5e
Merge pull request #4344 from soloestoy/fix-module-name-conflict
...
Fix module name conflict
2017-11-24 09:37:06 +01:00
zhaozhao.zz
f1333eb992
Modules: handle the busy module name
2017-09-28 17:38:40 +08:00
Dvir Volk
c3777932f6
Renamed GetCtxFlags to GetContextFlags
2017-09-27 11:58:16 +03:00
Dvir Volk
f5909f2c18
Added support for module context flags with RM_GetCtxFlags
2017-09-27 11:58:07 +03:00
antirez
1ac18c801b
Allow certain modules APIs only defining REDISMODULE_EXPERIMENTAL_API.
...
Those calls may be subject to changes in the future, so the user should
acknowledge it is using non stable API.
2017-07-14 12:07:52 +02:00
antirez
ed93fb8a29
Modules: DEBUG DIGEST interface.
2017-07-06 11:04:46 +02:00
antirez
346677a10c
Modules TSC: Export symbols of the new API.
2017-05-02 15:19:28 +02:00
antirez
c0837ddbcc
Use const in modules types mem_usage method.
...
As suggested by @itamarhaber.
2017-01-12 12:47:46 +01:00
Yossi Gottlieb
729eef96f1
Fix typo in RedisModuleTypeMethods declaration.
2016-11-30 22:05:59 +02:00
antirez
a52b715835
Modules: change type registration API to use a struct of methods.
2016-11-30 11:14:01 +01:00
antirez
a7af7a1f8e
Modules: AbortBlock() API implemented.
2016-10-13 16:57:40 +02:00
antirez
5a1a9e13f2
Modules: RM_Milliseconds() API added.
2016-10-07 16:34:19 +02:00
antirez
e102e93c9d
Modules: blocking commands WIP: API exported, a first example.
2016-10-07 13:48:14 +02:00
antirez
2371a8b3b3
Modules: introduce warning suppression macro for unused args.
2016-10-07 13:10:31 +02:00
antirez
9558e60f9c
Fix typos in GetContextFromIO API declaration.
2016-10-06 18:26:04 +02:00
antirez
6b0d47796f
Module: Ability to get context from IO context.
...
It was noted by @dvirsky that it is not possible to use string functions
when writing the AOF file. This sometimes is critical since the command
rewriting may need to be built in the context of the AOF callback, and
without access to the context, and the limited types that the AOF
production functions will accept, this can be an issue.
Moreover there are other needs that we can't anticipate regarding the
ability to use Redis Modules APIs using the context in order to build
representations to emit AOF / RDB.
Because of this a new API was added that allows the user to get a
temporary context from the IO context. The context is auto released
if obtained when the RDB / AOF callback returns.
Calling multiple time the function to get the context, always returns
the same one, since it is invalid to have more than a single context.
2016-10-06 17:09:26 +02:00
antirez
80df924169
Modules: API to save/load single precision floating point numbers.
...
When double precision is not needed, to take 2x space in the
serialization is not good.
2016-10-03 00:08:35 +02:00
antirez
77e9a88be3
Modules: API to log from module I/O callbacks.
2016-10-02 16:51:37 +02:00
Dvir Volk
57009a1ebe
added RM_CreateStringPrintf
2016-09-21 12:30:38 +03:00
antirez
89e24b8f4a
Modules: initial draft for a testing module.
2016-08-03 10:23:03 +02:00
antirez
5a52229249
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
Yossi Gottlieb
0c94a88075
Fix RedisModule_Calloc() definition typo.
2016-06-23 22:30:32 +03:00
Salvatore Sanfilippo
8e9eef76bf
Merge pull request #3335 from dvirsky/rm_calloc
...
added RM_Calloc implementation
2016-06-23 16:19:14 +02:00
Salvatore Sanfilippo
9df3006aa8
Merge pull request #3336 from yossigo/create_string_from_string
...
Add RedisModule_CreateStringFromString().
2016-06-23 16:16:28 +02:00
Salvatore Sanfilippo
c8cf3a4df6
Merge pull request #3330 from yossigo/fix_const
...
Use const in Redis Module API where possible.
2016-06-23 12:29:52 +02:00
antirez
4900e98d70
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
Yossi Gottlieb
84f1e03f9a
Add RedisModule_Log() logging API function.
2016-06-23 12:01:44 +02:00
Yossi Gottlieb
159c09f29e
Add RedisModule_CreateStringFromString().
2016-06-22 21:02:40 +03:00
Dvir Volk
bdc079dca4
added RM_Calloc implementation
2016-06-22 17:32:41 +03:00
Yossi Gottlieb
ce9d66d6e4
Use const in Redis Module API where possible.
2016-06-20 23:08:06 +03:00
Yossi Gottlieb
2fd6ca3cf8
Remove gcc warning when redismodule.h is included by a multi-file
...
module.
2016-06-07 13:31:33 +03:00
antirez
8ec28002be
Modules: support for modules native data types.
2016-06-03 18:14:04 +02:00
antirez
9aff564045
Modules: initial pool allocator and a LEFTPAD usage example.
2016-05-14 19:42:31 +02:00
antirez
6250a6b11f
Modules: RM_GetClientId() implemented.
2016-05-10 06:40:11 +02:00
antirez
227d68094b
Modules: command <-> core interface modified to get flags & keys.
2016-05-10 06:40:09 +02:00
antirez
42f72210fd
Modules: Hash API defines made more uniform.
2016-05-10 06:40:09 +02:00
antirez
9b0556cf10
Modules: Hash type API WIP #2 .
2016-05-10 06:40:09 +02:00
antirez
10993ca0d5
Modules: Hash type API WIP #1 .
2016-05-10 06:40:09 +02:00
antirez
33e1231e53
Modules: postponed array lengths.
2016-05-10 06:40:09 +02:00
antirez
00109e1113
Modules: zset lex iterator #3 .
2016-05-10 06:40:09 +02:00
antirez
083f5277c5
Modules: zset iterator redesign #1 .
2016-05-10 06:40:08 +02:00
antirez
f362f7a18a
Modules: sorted set iterators WIP #3 .
2016-05-10 06:40:08 +02:00
antirez
eac5a13cb7
Modules: sorted set iterators WIP.
2016-05-10 06:40:08 +02:00