MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / createGlobalStrings

Function createGlobalStrings

tests/modules/defragtest.c:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26RedisModuleString **global_strings = NULL;
27
28static void createGlobalStrings(RedisModuleCtx *ctx, int count)
29{
30 global_strings_len = count;
31 global_strings = RedisModule_Alloc(sizeof(RedisModuleString *) * count);
32
33 for (int i = 0; i < count; i++) {
34 global_strings[i] = RedisModule_CreateStringFromLongLong(ctx, i);
35 }
36}
37
38static int defragGlobalStrings(RedisModuleDefragCtx *ctx)
39{

Callers 1

RedisModule_OnLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected