summaryrefslogtreecommitdiff
path: root/src/functions.h
diff options
context:
space:
mode:
authorMeir Shpilraien (Spielrein) <meir@redis.com>2021-12-16 17:58:25 +0200
committerGitHub <noreply@github.com>2021-12-16 17:58:25 +0200
commit687210f1550cf9048bed5f5539c9411fb22cd3b0 (patch)
tree6bd085128bbc5203edb46c61c41f0d74c0967b5d /src/functions.h
parentffbe36fc3ee824407b3818c0a6f861176ce56482 (diff)
downloadredis-687210f1550cf9048bed5f5539c9411fb22cd3b0.tar.gz
Add FUNCTION FLUSH command to flush all functions (#9936)
Added `FUNCTION FLUSH` command. The new sub-command allows delete all the functions. An optional `[SYNC|ASYNC]` argument can be given to control whether or not to flush the functions synchronously or asynchronously. if not given the default flush mode is chosen by `lazyfree-lazy-user-flush` configuration values. Add the missing `functions.tcl` test to the list of tests that are executed in test_helper.tcl, and call FUNCTION FLUSH in between servers in external mode
Diffstat (limited to 'src/functions.h')
-rw-r--r--src/functions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/functions.h b/src/functions.h
index 4a1ec4a24..66147f97c 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -105,6 +105,7 @@ unsigned long functionsMemoryOverhead();
int functionsLoad(rio *rdb, int ver);
unsigned long functionsNum();
dict* functionsGet();
+size_t functionsLen(functionsCtx *functions_ctx);
functionsCtx* functionsCtxGetCurrent();
functionsCtx* functionsCtxCreate();
void functionsCtxFree(functionsCtx *functions_ctx);