mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 07:21:35 +00:00
Add RedisModule_CreateStringFromString().
This commit is contained in:
@ -179,6 +179,16 @@ integer instead of taking a buffer and its length.
|
||||
The returned string must be released with `RedisModule_FreeString()` or by
|
||||
enabling automatic memory management.
|
||||
|
||||
## `RM_CreateStringFromString`
|
||||
|
||||
RedisModuleString *RM_CreateStringFromString(RedisModuleCtx *ctx, const RedisModuleString *str);
|
||||
|
||||
Like `RedisModule_CreatString()`, but creates a string starting from an existing
|
||||
RedisModuleString.
|
||||
|
||||
The returned string must be released with `RedisModule_FreeString()` or by
|
||||
enabling automatic memory management.
|
||||
|
||||
## `RM_FreeString`
|
||||
|
||||
void RM_FreeString(RedisModuleCtx *ctx, RedisModuleString *str);
|
||||
|
Reference in New Issue
Block a user