Commit Graph

112 Commits

Author SHA1 Message Date
67aa527b22 Added some documentation and fixed a test 2019-12-17 07:15:04 +00:00
034dcf185c Add module APIs for custom authentication 2019-12-17 06:59:59 +00:00
37bf3e18cb Modules: block ok keys: improve example. 2019-10-31 12:31:22 +01:00
91f4bdc9f9 Modules: block on keys: use a better interface.
Using the is_key_ready() callback plus the reply callback later, creates
different issues AFAIK:

1. More complex API.
2. We need to call the reply callback() ASAP if the is_key_ready()
interface returned success, however the internals do not work in that
way, so when the reply callback is called the setup could be different.
To fix that, there is to break the current design that handles the
unblocked clients asyncrhonously, and run the list ASAP.
2019-10-31 11:35:07 +01:00
228bc89ecb Modules: block on keys: example on hellotype.c. 2019-10-31 10:30:54 +01:00
dddfde85ef Modules hooks: fix memory leak in example module. 2019-10-23 18:39:53 +02:00
bc1ef48e56 Modules hooks: FLUSHDB event example. 2019-10-23 18:39:53 +02:00
c379fdbae2 Modules hooks: do more in example client callback. 2019-10-23 18:39:53 +02:00
cf52e0ad44 Module hooks: fixes and an example module. 2019-10-23 18:39:53 +02:00
ec0b6bd2c3 Add runtest-moduleapi with commandfilter coverage. 2019-03-24 12:03:03 +02:00
822a992f91 fix: missing initialization. 2019-03-24 12:00:33 +02:00
5e8caca036 Merge pull request #5944 from yossigo/command-filtering
Command Filtering API
2019-03-22 17:43:49 +01:00
040e52c77f Renamed event name from "miss" to "keymiss" 2019-03-21 20:33:11 +02:00
6c0a5fde3d 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
e2626f69ec 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
99c2fe0bcf added special flag for keyspace miss notifications 2019-03-21 11:47:14 +02:00
8620a434a0 Added keyspace miss notifications support 2019-03-19 13:11:37 +02:00
a9a6a894e8 CommandFilter API: hellofilter and tests. 2019-03-18 23:07:28 +02:00
6711132083 Add command filtering argument handling API. 2019-03-18 18:36:46 +02:00
c3e187190b Initial command filter experiment. 2019-03-18 13:50:34 +02:00
5aa347b377 Modules: hellodict example WIP #3: KEYRANGE. 2018-09-27 17:01:35 +02:00
20f047965c Modules: hellodict example WIP #1: GET command. 2018-09-27 11:22:43 +02:00
880ca07719 Modules: hellodict example WIP #1: SET command. 2018-09-26 17:52:12 +02:00
bbe18eacda Modules: remove useless defines in hellotimer.c 2018-09-26 17:42:00 +02:00
6c3bfb00fc Modules: fix top comment of hellotimer.c 2018-09-26 17:41:08 +02:00
0d6f11f4d1 Module cluster flags: use RM_SetClusterFlags() in the example. 2018-09-19 16:17:20 +02:00
54871412c2 Merge pull request #5348 from gkorland/patch-2
No need to return "OK"
2018-09-17 15:42:50 +02:00
b2fc998ad6 typo fix 2018-09-16 15:21:21 +03:00
62015d4fb0 No need to return "OK"
No need to return "+OK" in this case since the result is an Array of all the nodes
2018-09-13 15:42:17 +03:00
93238575f7 Fix typo 2018-07-03 18:19:46 +02:00
404160a271 Modules API: blocked client disconnection callback. 2018-04-12 13:21:48 +02:00
005c932f22 Modules API: fix timer example. 2018-04-12 13:00:18 +02:00
49e098234a 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
19c42c901b Modules Timer API: add example of API. 2018-03-31 10:12:34 +02:00
2f7da0fd1a Modules Timer API: fix infinite loop and export API. 2018-03-31 00:44:46 +02:00
192361b562 Modules Cluster API: node API exported, example improved. 2018-03-30 17:00:45 +02:00
061f03d730 Modules Cluster API: add a simple example module. 2018-03-30 12:49:45 +02:00
613831f820 Fix indentation and comment style in testmodule 2018-02-14 21:43:06 +02:00
5b7b12e38f removed hellonotify.c 2018-02-14 21:38:58 +02:00
896db12b41 fixed test 2018-02-14 21:38:58 +02:00
2136035e47 finished implementation of notifications. Tests unfinished 2018-02-14 21:38:58 +02:00
e76dfc90a7 Added RM_UnlinkKey - a low level analog to UNLINK command 2018-01-07 16:41:43 +02:00
b246635d6d Renamed GetCtxFlags to GetContextFlags 2017-09-27 11:58:16 +03:00
616c546b01 Added support for module context flags with RM_GetCtxFlags 2017-09-27 11:58:07 +03:00
8eefc9323d 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
f03947a676 Modules documentation removed from source.
Moving to redis-doc repository to publish via Redis.io.
2017-07-14 11:33:59 +02:00
43aaf96163 Markdown generation of Redis Modules API reference improved. 2017-07-14 11:29:31 +02:00
51ffd062d3 Modules: DEBUG DIGEST interface. 2017-07-06 11:04:46 +02:00
7d9326b1f3 Modules TSC: HELLO.KEYS reply format fixed. 2017-05-03 23:43:49 +02:00
6798736909 Modules: remove unused var in example module. 2017-05-03 14:10:21 +02:00