Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7ab6b824
Commit
7ab6b824
authored
Mar 16, 2024
by
guoguangwu
Committed by
Michael Grunder
Mar 15, 2024
Browse files
fix: typos
Signed-off-by:
guoguangwu
<
guoguangwug@gmail.com
>
parent
398e16e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
7ab6b824
...
@@ -158,7 +158,7 @@ The values are not stored in the `redisContext`, so they are not automatically a
...
@@ -158,7 +158,7 @@ The values are not stored in the `redisContext`, so they are not automatically a
These functions return
`REDIS_OK`
on success.
These functions return
`REDIS_OK`
on success.
On failure,
`REDIS_ERR`
is returned and the underlying connection is closed.
On failure,
`REDIS_ERR`
is returned and the underlying connection is closed.
To configure these for an asyncronous context (see
*Asynchronous API*
below), use
`ac->c`
to get the redisContext out of an asyncRedisContext.
To configure these for an async
h
ronous context (see
*Asynchronous API*
below), use
`ac->c`
to get the redisContext out of an asyncRedisContext.
```
C
```
C
int redisEnableKeepAlive(redisContext *c);
int redisEnableKeepAlive(redisContext *c);
...
...
test.c
View file @
7ab6b824
...
@@ -156,7 +156,7 @@ static redisContext *select_database(redisContext *c) {
...
@@ -156,7 +156,7 @@ static redisContext *select_database(redisContext *c) {
assert
(
reply
!=
NULL
);
assert
(
reply
!=
NULL
);
freeReplyObject
(
reply
);
freeReplyObject
(
reply
);
/* Make sure the DB is em
t
py */
/* Make sure the DB is emp
t
y */
reply
=
redisCommand
(
c
,
"DBSIZE"
);
reply
=
redisCommand
(
c
,
"DBSIZE"
);
assert
(
reply
!=
NULL
);
assert
(
reply
!=
NULL
);
if
(
reply
->
type
==
REDIS_REPLY_INTEGER
&&
reply
->
integer
==
0
)
{
if
(
reply
->
type
==
REDIS_REPLY_INTEGER
&&
reply
->
integer
==
0
)
{
...
@@ -2298,7 +2298,7 @@ static void test_async_polling(struct config config) {
...
@@ -2298,7 +2298,7 @@ static void test_async_polling(struct config config) {
*/
*/
test
(
"Ping/Pong from onConnected callback (Issue #931): "
);
test
(
"Ping/Pong from onConnected callback (Issue #931): "
);
c
=
do_aconnect
(
config
,
ASTEST_ISSUE_931_PING
);
c
=
do_aconnect
(
config
,
ASTEST_ISSUE_931_PING
);
/* connect callback issues ping, reponse callback destroys context */
/* connect callback issues ping, re
s
ponse callback destroys context */
while
(
astest
.
ac
)
while
(
astest
.
ac
)
redisPollTick
(
c
,
0
.
1
);
redisPollTick
(
c
,
0
.
1
);
assert
(
astest
.
connected
==
0
);
assert
(
astest
.
connected
==
0
);
...
...
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