Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bd2cd705
Commit
bd2cd705
authored
Jun 15, 2016
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 15, 2016
Browse files
Merge pull request #3281 from jamespedwards42/unstable
Fix modules intro typos.
parents
2d869952
3432061c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/modules/INTRO.md
View file @
bd2cd705
...
@@ -368,7 +368,7 @@ section).
...
@@ -368,7 +368,7 @@ section).
# Releasing call reply objects
# Releasing call reply objects
Reply objects must be freed using
`RedisModule_FreeCallRe
l
py`
. For arrays,
Reply objects must be freed using
`RedisModule_FreeCallRep
l
y`
. For arrays,
you need to free only the top level reply, not the nested replies.
you need to free only the top level reply, not the nested replies.
Currently the module implementation provides a protection in order to avoid
Currently the module implementation provides a protection in order to avoid
crashing if you free a nested reply object for error, however this feature
crashing if you free a nested reply object for error, however this feature
...
@@ -647,7 +647,7 @@ access) for speed. The API will return a pointer and a length, so that's
...
@@ -647,7 +647,7 @@ access) for speed. The API will return a pointer and a length, so that's
possible to access and, if needed, modify the string directly.
possible to access and, if needed, modify the string directly.
size_t len, j;
size_t len, j;
char *myptr = RedisModule_StringDMA(key,REDISMODULE_WRITE
,&len
);
char *myptr = RedisModule_StringDMA(key,
&len,
REDISMODULE_WRITE);
for (j = 0; j < len; j++) myptr[j] = 'A';
for (j = 0; j < len; j++) myptr[j] = 'A';
In the above example we write directly on the string. Note that if you want
In the above example we write directly on the string. Note that if you want
...
@@ -853,4 +853,3 @@ Documentation missing, please check the following functions inside `module.c`:
...
@@ -853,4 +853,3 @@ Documentation missing, please check the following functions inside `module.c`:
RedisModule_IsKeysPositionRequest(ctx);
RedisModule_IsKeysPositionRequest(ctx);
RedisModule_KeyAtPos(ctx,pos);
RedisModule_KeyAtPos(ctx,pos);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment