summaryrefslogtreecommitdiff
path: root/runtest-moduleapi
diff options
context:
space:
mode:
authormeir@redislabs.com <meir@redislabs.com>2019-10-17 15:37:01 +0300
committermeir@redislabs.com <meir@redislabs.com>2019-11-11 16:01:41 +0200
commit11c6ce812aa32cf6a6011697cbfe8881ff9450fa (patch)
treeb1da92611952a4c70c9ba2aeafdf5267d0f27ff5 /runtest-moduleapi
parent0f026af185e918a9773148f6ceaa1b084662be88 (diff)
downloadredis-11c6ce812aa32cf6a6011697cbfe8881ff9450fa.tar.gz
Added scan implementation to module api.
The implementation expose the following new functions: 1. RedisModule_CursorCreate - allow to create a new cursor object for keys scanning 2. RedisModule_CursorRestart - restart an existing cursor to restart the scan 3. RedisModule_CursorDestroy - destroy an existing cursor 4. RedisModule_Scan - scan keys The RedisModule_Scan function gets a cursor object, a callback and void* (used as user private data). The callback will be called for each key in the database proving the key name and the value as RedisModuleKey.
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-xruntest-moduleapi1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest-moduleapi b/runtest-moduleapi
index e48535126..3eb6b21b2 100755
--- a/runtest-moduleapi
+++ b/runtest-moduleapi
@@ -22,4 +22,5 @@ $TCLSH tests/test_helper.tcl \
--single unit/moduleapi/hooks \
--single unit/moduleapi/misc \
--single unit/moduleapi/blockonkeys \
+--single unit/moduleapi/scan \
"${@}"