Salvatore Sanfilippo
d415aa89c0
Merge pull request #5944 from yossigo/command-filtering
...
Command Filtering API
2019-03-22 17:43:49 +01:00
Salvatore Sanfilippo
e19f00f8b2
Merge pull request #5945 from dvirsky/miss_notification
...
Added keyspace miss notifications support
2019-03-22 17:41:00 +01:00
Yossi Gottlieb
898677d59e
CommandFilter API: REDISMODULE_CMDFILTER_NOSELF.
...
Add a flag to automatically protect filters from being called
recursively by their own module.
2019-03-21 19:53:12 +02:00
Yossi Gottlieb
c675d44488
CommandFilter API: Add unregister option.
...
A filter handle is returned and can be used to unregister a filter. In
the future it can also be used to further configure or manipulate the
filter.
Filters are now automatically unregistered when a module unloads.
2019-03-21 14:44:49 +02:00
Dvir Volk
ca2eadaaac
Added missing REDISMODULE_NOTIFY_KEY_MISS flag to REDISMODULE_NOTIFY_ALL
2019-03-21 12:47:51 +02:00
Dvir Volk
50befc42ad
added special flag for keyspace miss notifications
2019-03-21 11:47:14 +02:00
Yossi Gottlieb
fdacd1b0b5
CommandFilter API: More cleanup.
2019-03-18 23:05:52 +02:00
Yossi Gottlieb
bc47c987d6
Add command filtering argument handling API.
2019-03-18 18:36:46 +02:00
Yossi Gottlieb
bb6e8ba682
Initial command filter experiment.
2019-03-18 13:50:34 +02:00
Yossi Gottlieb
dd405d4026
Add RedisModule_GetKeyNameFromIO().
2019-03-15 10:23:27 +02:00
antirez
4e3f2ab269
Merge branch 'sharedapi' into unstable
2019-03-14 11:24:48 +01:00
swilly22
58bcc05b1d
Extend REDISMODULE_CTX_FLAGS to indicate if command was sent by master
2019-03-11 10:02:19 +02:00
antirez
b91f7656fd
Modules shared API: export new core APIs.
2018-12-20 17:57:49 +01:00
antirez
ea2d253238
Revert shared APIs to modify the design.
2018-12-20 17:56:38 +01:00
MeirShpilraien
2a907e7d00
added module ability to register api to be used by other modules
2018-12-20 17:55:18 +01:00
antirez
cda734caff
Modules: Modules: dictionary API WIP #13 : Compare API exported.
2018-09-27 11:46:22 +02:00
antirez
205998ae7e
Modules: dictionary API WIP #10 : export API to modules.
2018-09-26 13:39:01 +02:00
antirez
3480bebb3c
Modules: dictionary API work in progress #1 .
2018-09-21 17:54:09 +02:00
antirez
587db27252
Module cluster flags: add RM_SetClusterFlags() API.
2018-09-19 12:02:37 +02:00
antirez
96ceafbe4d
Module cluster flags: initial vars / defines added.
2018-09-19 11:20:52 +02:00
antirez
9191287d08
Modules API: Add call to get the blocked client handle from the context.
...
This is useful in the reply and timeout callback, if the module wants to
do some cleanup of the blocked client handle that may be stored around
in the module-private data structures.
2018-04-13 13:48:11 +02:00
antirez
c8e556d710
Modules API: blocked client disconnection callback.
2018-04-12 13:21:48 +02:00
antirez
338d823975
Modules API: OOM_WARNING flags.
...
In some modules it may be useful to have an idea about being near to
OOM. Anyway additionally an explicit call to get the fill ratio will be
added in the future.
2018-04-11 16:22:52 +02:00
antirez
7713af1b0c
Modules: context flags now include OOM flag.
...
Plus freeMemoryIfNeeded() refactoring to improve legibility.
Please review this commit for sanity.
2018-04-09 17:44:30 +02:00
antirez
e5b0340ecb
Modules: remove trailing empty spaces.
2018-04-09 17:16:55 +02:00
antirez
9f7960ef4d
Modules API: experimental APIs version.
...
This way it is possible to use conditional compilation to be compatible
with a larger amount of Redis versions, however note that this breaks
binary compatibiltiy, so the module must be compiled with the
corresponding redismodule.h file depending on the version of Redis
targeted.
2018-04-09 12:17:19 +02:00
antirez
1331ce96af
Modules API: blocked client free callback modified to get a context.
...
Note that this was an experimental API that can only be enabled with
REIDSMODULE_EXPERIMENTAL_API, so it is subject to change until its
promoted to stable API. Sorry for the breakage, it is trivial to
resolve btw. This change will not be back ported to Redis 4.0.
2018-04-09 11:54:44 +02:00
antirez
5957ec011b
Modules API: RM_GetRandomBytes() / GetRandomHexChars().
2018-04-05 13:24:22 +02:00
antirez
b9f0a4a7d5
Modules Cluster API: GetClusterSize() added.
2018-04-01 16:36:32 +02:00
antirez
778800f2c5
Modules Cluster API: GetMyClusterID() added.
2018-04-01 16:20:57 +02:00
antirez
ba7d6001ba
Modules Timer API: fix infinite loop and export API.
2018-03-31 00:44:46 +02:00
antirez
397089524e
Modules Timer API: initial implementation.
2018-03-30 20:40:35 +02:00
antirez
b3291b0706
Modules Cluster API: node API exported, example improved.
2018-03-30 17:00:45 +02:00
antirez
611a5097e5
Modules Cluster API: nodes list and info API.
2018-03-30 16:16:47 +02:00
antirez
2ce3d47055
Modules Cluster API: node information struct and flags.
2018-03-30 13:16:55 +02:00
antirez
055ab3623b
Modules Cluster API: make node IDs pointers constant.
2018-03-30 13:16:07 +02:00
antirez
9d5a054975
Modules Cluster API: fix new API calls exporting.
2018-03-30 12:49:16 +02:00
antirez
0edbb9221b
Modules Cluster API: sending / receiving API first implementation.
2018-03-30 11:06:08 +02:00
Dvir Volk
4496d77fc9
Add REDISMODULE_NOTIFY_STREAM flag to support stream notifications
2018-02-14 21:50:42 +02:00
Dvir Volk
20f414af40
finished implementation of notifications. Tests unfinished
2018-02-14 21:38:58 +02:00
Mark Nunberg
dd5f80e974
redismodule.h: Check ModuleNameBusy before calling it
...
Older versions might not have this function.
2018-01-23 10:49:18 -05:00
Dvir Volk
7e4794f67c
Added RM_UnlinkKey - a low level analog to UNLINK command
2018-01-07 16:41:43 +02:00
Salvatore Sanfilippo
8fa2ab29d8
Merge pull request #4344 from soloestoy/fix-module-name-conflict
...
Fix module name conflict
2017-11-24 09:37:06 +01:00
zhaozhao.zz
cc7ef78988
Modules: handle the busy module name
2017-09-28 17:38:40 +08:00
Dvir Volk
2f336b5eb7
Renamed GetCtxFlags to GetContextFlags
2017-09-27 11:58:16 +03:00
Dvir Volk
43e4efc52e
Added support for module context flags with RM_GetCtxFlags
2017-09-27 11:58:07 +03:00
antirez
7d286826d6
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
45c2679529
Modules: DEBUG DIGEST interface.
2017-07-06 11:04:46 +02:00
antirez
d8b3f3f854
Modules TSC: Export symbols of the new API.
2017-05-02 15:19:28 +02:00
antirez
ab7d6831a3
Use const in modules types mem_usage method.
...
As suggested by @itamarhaber.
2017-01-12 12:47:46 +01:00