Closed hahahashen closed 2 weeks ago
[!NOTE] Currently processing new changes in this PR. This may take a few minutes, please wait...
Commits
Files that changed from the base of the PR and between b195f25d7195920403280fb27777798199a553bd and 37b58b85720bd631274831c2205d3a47ba46c03a.Files selected for processing (31)
* CMakeLists.txt (2 hunks) * cmake/jemalloc.cmake (1 hunks) * cmake/rediscache.cmake (1 hunks) * etc/conf/pikiwidb.conf (1 hunks) * src/CMakeLists.txt (3 hunks) * src/base_cmd.cc (1 hunks) * src/base_cmd.h (2 hunks) * src/cache/CMakeLists.txt (1 hunks) * src/cache/config.h (1 hunks) * src/cache/list.cc (1 hunks) * src/cache/redisCache.cc (1 hunks) * src/cache/redisCache.h (1 hunks) * src/cache/string.cc (1 hunks) * src/cache_define.h (1 hunks) * src/client.h (2 hunks) * src/cmd_keys.cc (8 hunks) * src/cmd_keys.h (10 hunks) * src/cmd_kv.cc (20 hunks) * src/cmd_kv.h (16 hunks) * src/cmd_list.cc (11 hunks) * src/cmd_list.h (13 hunks) * src/config.cc (2 hunks) * src/config.h (1 hunks) * src/db.cc (1 hunks) * src/db.h (3 hunks) * src/pcache.cc (1 hunks) * src/pcache.h (1 hunks) * src/pcache_load_thread.cc (1 hunks) * src/pcache_load_thread.h (1 hunks) * src/thread.cc (1 hunks) * src/thread.h (1 hunks)_____________________________________________________________________________ < Butterfly effect: one bug in your code can cause a hurricane in production. > ----------------------------------------------------------------------------- \ \ \ \ /\ ( ) .( o ).
[!TIP]
Migrating from UI to YAML configuration.
Use the `@coderabbitai configuration` command in a PR comment to get a dump of all your UI settings in YAML format. You can then edit this YAML file and upload it to the root of your repository to configure CodeRabbit programmatically.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
对pikiwidb添加cache层,主要有以下几个步骤: 1、引入rediscache依赖 2、封装rediscache接口 3、封装PCache类用以管理rediscache 4、封装PCacheLoadThread类用以cache miss时加载key到cache 5、将cache处理添加进原来的命令处理流程,以及DB初始化过程中(cache初始化成功与否不影响DB初始化) 6、新增cache配置项,并进行读取 7、命令改造,当前PR已经改造了 kv & list