Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
128baafb
Commit
128baafb
authored
Sep 22, 2017
by
old-bear
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate document redis_client to English
parent
a43bbf7a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
redis_client.md
docs/cn/redis_client.md
+3
-3
redis_client.md
docs/en/redis_client.md
+0
-0
No files found.
docs/cn/redis_client.md
View file @
128baafb
...
...
@@ -7,9 +7,9 @@
-
支持多种
[
连接方式
](
client.md#连接方式
)
。支持超时、backup request、取消、tracing、内置服务等一系列RPC基本福利。
-
一个进程和一个redis-server只有一个连接。多个线程同时访问一个redis-server时更高效(见
[
性能
](
#性能
)
)。无论reply的组成多复杂,内存都会连续成块地分配,并支持短串优化(SSO)。
像http一样,brpc保证在最差情况下解析redis reply的时间复杂度也是O(N),N是reply的字节数,而不是O(
N^2
)。当reply是个较大的数组时,这是比较重要的。
像http一样,brpc保证在最差情况下解析redis reply的时间复杂度也是O(N),N是reply的字节数,而不是O(
$N^2$
)。当reply是个较大的数组时,这是比较重要的。
r32037后
加上
[
-redis_verbose
](
#查看发出的请求和收到的回复
)
后会在stderr上打印出所有的redis request和response供调试。
加上
[
-redis_verbose
](
#查看发出的请求和收到的回复
)
后会在stderr上打印出所有的redis request和response供调试。
# 访问单台redis
...
...
@@ -119,7 +119,7 @@ AddCommandByComponents类似hiredis中的redisCommandArgv,用户通过数组
command_size()可获得(成功)加入的命令个数。
调用Clear()后可重用RedisReques
调用Clear()后可重用RedisReques
t
# RedisResponse
...
...
docs/en/redis_client.md
0 → 100644
View file @
128baafb
This diff is collapsed.
Click to expand it.
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