mirror of
https://github.com/redis/redis.git
synced 2026-04-29 18:20:21 -04:00
This PR introduces the initial configuration infrastructure for vector-sets, along with a new option: `vset-force-single-threaded-execution`. When enabled, it applies the `NOTHREAD` flag to VSIM and disables the `CAS` option for VADD, thereby enforcing single-threaded execution. Note: This mode is not optimized for single-threaded performance. --------- Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com> Co-authored-by: debing.sun <debing.sun@redis.com>
24 lines
541 B
C
24 lines
541 B
C
/* vector set module configuration.
|
|
*
|
|
* Copyright (c) 2009-Present, Redis Ltd.
|
|
* All rights reserved.
|
|
*
|
|
* Licensed under your choice of (a) the Redis Source Available License 2.0
|
|
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
|
|
* GNU Affero General Public License v3 (AGPLv3).
|
|
*/
|
|
|
|
#ifndef VSET_CONFIG_H
|
|
#define VSET_CONFIG_H
|
|
|
|
#include "../../src/redismodule.h"
|
|
|
|
typedef struct {
|
|
int forceSingleThreadExec;
|
|
} VSConfig;
|
|
|
|
extern VSConfig VSGlobalConfig;
|
|
|
|
int RegisterModuleConfig(RedisModuleCtx *ctx);
|
|
|
|
#endif
|