Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:cache layer for pika #2171

Merged
merged 86 commits into from
Dec 1, 2023
Merged

feat:cache layer for pika #2171

merged 86 commits into from
Dec 1, 2023

Conversation

chejinge
Copy link
Collaborator

@chejinge chejinge commented Nov 28, 2023

brother-jin and others added 30 commits October 19, 2023 11:05
add_ci

Co-authored-by: wuxianrong <wuxianrong@360.cn>
Improvement: using pikiwidb/rediscache v0.1.3
Co-authored-by: wuxianrong <wuxianrong@360.cn>
fix_cache_string
* add_bitmap_cache
Co-authored-by: chejinge <chejinge@360.cn>
add_string_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>
add_list_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>
* set_cache

Co-authored-by: chejinge <chejinge@360.cn>
add_hash_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>
* cache zset command

Co-authored-by: chejinge <chejinge@360.cn>
Add Pika-Cache-Status

Co-authored-by: wuxianrong <wuxianrong@360.cn>
fix cache Asynchronous transmission

Co-authored-by: wuxianrong <wuxianrong@360.cn>
fix:coredump when shutdown pika
@github-actions github-actions bot added Invalid PR Title ✏️ Feature New feature or request labels Nov 28, 2023
@chejinge chejinge added 3.5.2 and removed ✏️ Feature New feature or request Invalid PR Title labels Nov 28, 2023
@chejinge chejinge changed the title Feat:Pika cache to unstable feat:Pika cache to unstable Nov 28, 2023
fix:hdel

Co-authored-by: chejinge <chejinge@360.cn>
@github-actions github-actions bot added the ✏️ Feature New feature or request label Nov 29, 2023
include/pika_admin.h Outdated Show resolved Hide resolved
src/pika_cache.cc Outdated Show resolved Hide resolved
src/pika_cache.cc Outdated Show resolved Hide resolved
@chejinge chejinge changed the title feat:Pika cache to unstable feat:cache layer for pika Dec 1, 2023
wuxianrong and others added 2 commits December 1, 2023 15:32
@AlexStocks AlexStocks merged commit 9aa1495 into OpenAtomFoundation:unstable Dec 1, 2023
AlexStocks added a commit that referenced this pull request Dec 1, 2023
* add dependences

* fix: add_ci (#229)

add_ci

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* formate code style && fix centos build bug

* fix centos build bug

* format code style

* format

* rename classname

* format code

* use cache define

* upgrade rediscache version to v0.1.3

* change file name

* using DEFER

* fix github ci failure

* add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (#237)

add_string_cache

* add_slave_cache (#243)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache string (#247)

fix_cache_string

* add_bitmap_cache (#255)

* add_bitmap_cache
Co-authored-by: chejinge <chejinge@360.cn>

* add string cache cmd (#252)

add_string_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add list cache cmd (#250)

add_list_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache set command (#256)

* set_cache

Co-authored-by: chejinge <chejinge@360.cn>

* add hash cache cmd (#251)

add_hash_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache zset command (#257)

* cache zset command

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_zset.h

* add Pika Cache Status (#259)

Add Pika-Cache-Status

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index

* git revert

* 【fix】cache Asynchronous transmission (#265)

fix cache Asynchronous transmission

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add defer (#269)

add_defer

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index (#260)

* cache index

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Support for multiple databases   (#275)

* delete_pika_cache_manager

* Support for multiple databases

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* smart pointer and lock granularity && set don't update cache (#277)

Co-authored-by: chejinge <chejinge@360.cn>

* fix_lock (#278)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_command_bug (#282)

* fix_command_bug

Co-authored-by: chejinge <chejinge@360.cn>

* Fix del mget (#291)

 fix_del_command&&HMSET HMGET

---------

Co-authored-by: chejinge <chejinge@360.cn>

* bugfix:ttl&&exits command (#300)

* fix_ttl_exits
---------

Co-authored-by: chejinge <chejinge@360.cn>

* fix: hash/list/set/zset test (#285)

* fix hash/list test

* fix set/zset test

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix bitpos strlen msetnx

* fix bitpos strlen msetnx

* Update pika_kv.cc

* Update pika_command.cc

* fix: hash/zset test cache (#302)

* fix hash/list test

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix Master-slave test

* code format (#316)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache code style

* fix:cache code style

* fix

* Supports multi-DB asynchronous data transfer   (#317)

* code format

* support dbs

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix conflict and change name

* fix conflict and change name

* fix conflict and change name

* Update pika_admin.cc

* Update pika_admin.cc

* Initialization variable   (#321)

add_comment

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_flushdb

* fix: Cache flushdb (#322)

fix_flushdb

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Fix cache mget (#323)

* fix_mget

* fix_lock_and_multi_caches

* fix_mem_leak

* fix_mem_leak

* fix

* add cacheclean command

* fix coreedump

* Fix:mem leak (#329)

fix:hdel

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_admin.cc

* Update pika.conf

* Update pika.conf

* fix_license

* remove nullpter

---------

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: Mixficsol <838844609@qq.com>
Co-authored-by: wuxianrong <wuxianrong@360.cn>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
Co-authored-by: alexstocks <alexstocks@foxmail.com>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* add dependences

* fix: add_ci (OpenAtomFoundation#229)

add_ci

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* formate code style && fix centos build bug

* fix centos build bug

* format code style

* format

* rename classname

* format code

* use cache define

* upgrade rediscache version to v0.1.3

* change file name

* using DEFER

* fix github ci failure

* add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (OpenAtomFoundation#237)

add_string_cache

* add_slave_cache (OpenAtomFoundation#243)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache string (OpenAtomFoundation#247)

fix_cache_string

* add_bitmap_cache (OpenAtomFoundation#255)

* add_bitmap_cache
Co-authored-by: chejinge <chejinge@360.cn>

* add string cache cmd (OpenAtomFoundation#252)

add_string_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add list cache cmd (OpenAtomFoundation#250)

add_list_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache set command (OpenAtomFoundation#256)

* set_cache

Co-authored-by: chejinge <chejinge@360.cn>

* add hash cache cmd (OpenAtomFoundation#251)

add_hash_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache zset command (OpenAtomFoundation#257)

* cache zset command

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_zset.h

* add Pika Cache Status (OpenAtomFoundation#259)

Add Pika-Cache-Status

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index

* git revert

* 【fix】cache Asynchronous transmission (OpenAtomFoundation#265)

fix cache Asynchronous transmission

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add defer (OpenAtomFoundation#269)

add_defer

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index (OpenAtomFoundation#260)

* cache index

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Support for multiple databases   (OpenAtomFoundation#275)

* delete_pika_cache_manager

* Support for multiple databases

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* smart pointer and lock granularity && set don't update cache (OpenAtomFoundation#277)

Co-authored-by: chejinge <chejinge@360.cn>

* fix_lock (OpenAtomFoundation#278)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_command_bug (OpenAtomFoundation#282)

* fix_command_bug

Co-authored-by: chejinge <chejinge@360.cn>

* Fix del mget (OpenAtomFoundation#291)

 fix_del_command&&HMSET HMGET

---------

Co-authored-by: chejinge <chejinge@360.cn>

* bugfix:ttl&&exits command (OpenAtomFoundation#300)

* fix_ttl_exits
---------

Co-authored-by: chejinge <chejinge@360.cn>

* fix: hash/list/set/zset test (OpenAtomFoundation#285)

* fix hash/list test

* fix set/zset test

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix bitpos strlen msetnx

* fix bitpos strlen msetnx

* Update pika_kv.cc

* Update pika_command.cc

* fix: hash/zset test cache (OpenAtomFoundation#302)

* fix hash/list test

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix Master-slave test

* code format (OpenAtomFoundation#316)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache code style

* fix:cache code style

* fix

* Supports multi-DB asynchronous data transfer   (OpenAtomFoundation#317)

* code format

* support dbs

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix conflict and change name

* fix conflict and change name

* fix conflict and change name

* Update pika_admin.cc

* Update pika_admin.cc

* Initialization variable   (OpenAtomFoundation#321)

add_comment

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_flushdb

* fix: Cache flushdb (OpenAtomFoundation#322)

fix_flushdb

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Fix cache mget (OpenAtomFoundation#323)

* fix_mget

* fix_lock_and_multi_caches

* fix_mem_leak

* fix_mem_leak

* fix

* add cacheclean command

* fix coreedump

* Fix:mem leak (OpenAtomFoundation#329)

fix:hdel

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_admin.cc

* Update pika.conf

* Update pika.conf

* fix_license

* remove nullpter

---------

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: Mixficsol <838844609@qq.com>
Co-authored-by: wuxianrong <wuxianrong@360.cn>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
Co-authored-by: alexstocks <alexstocks@foxmail.com>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* add dependences

* fix: add_ci (OpenAtomFoundation#229)

add_ci

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* formate code style && fix centos build bug

* fix centos build bug

* format code style

* format

* rename classname

* format code

* use cache define

* upgrade rediscache version to v0.1.3

* change file name

* using DEFER

* fix github ci failure

* add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (OpenAtomFoundation#237)

add_string_cache

* add_slave_cache (OpenAtomFoundation#243)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache string (OpenAtomFoundation#247)

fix_cache_string

* add_bitmap_cache (OpenAtomFoundation#255)

* add_bitmap_cache
Co-authored-by: chejinge <chejinge@360.cn>

* add string cache cmd (OpenAtomFoundation#252)

add_string_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add list cache cmd (OpenAtomFoundation#250)

add_list_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache set command (OpenAtomFoundation#256)

* set_cache

Co-authored-by: chejinge <chejinge@360.cn>

* add hash cache cmd (OpenAtomFoundation#251)

add_hash_cache_cmd

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache zset command (OpenAtomFoundation#257)

* cache zset command

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_zset.h

* add Pika Cache Status (OpenAtomFoundation#259)

Add Pika-Cache-Status

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index

* git revert

* 【fix】cache Asynchronous transmission (OpenAtomFoundation#265)

fix cache Asynchronous transmission

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* add defer (OpenAtomFoundation#269)

add_defer

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* cache index (OpenAtomFoundation#260)

* cache index

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Support for multiple databases   (OpenAtomFoundation#275)

* delete_pika_cache_manager

* Support for multiple databases

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* smart pointer and lock granularity && set don't update cache (OpenAtomFoundation#277)

Co-authored-by: chejinge <chejinge@360.cn>

* fix_lock (OpenAtomFoundation#278)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_command_bug (OpenAtomFoundation#282)

* fix_command_bug

Co-authored-by: chejinge <chejinge@360.cn>

* Fix del mget (OpenAtomFoundation#291)

 fix_del_command&&HMSET HMGET

---------

Co-authored-by: chejinge <chejinge@360.cn>

* bugfix:ttl&&exits command (OpenAtomFoundation#300)

* fix_ttl_exits
---------

Co-authored-by: chejinge <chejinge@360.cn>

* fix: hash/list/set/zset test (OpenAtomFoundation#285)

* fix hash/list test

* fix set/zset test

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix bitpos strlen msetnx

* fix bitpos strlen msetnx

* Update pika_kv.cc

* Update pika_command.cc

* fix: hash/zset test cache (OpenAtomFoundation#302)

* fix hash/list test

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix Master-slave test

* code format (OpenAtomFoundation#316)

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix:cache code style

* fix:cache code style

* fix

* Supports multi-DB asynchronous data transfer   (OpenAtomFoundation#317)

* code format

* support dbs

---------

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix conflict and change name

* fix conflict and change name

* fix conflict and change name

* Update pika_admin.cc

* Update pika_admin.cc

* Initialization variable   (OpenAtomFoundation#321)

add_comment

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* fix_flushdb

* fix: Cache flushdb (OpenAtomFoundation#322)

fix_flushdb

Co-authored-by: wuxianrong <wuxianrong@360.cn>

* Fix cache mget (OpenAtomFoundation#323)

* fix_mget

* fix_lock_and_multi_caches

* fix_mem_leak

* fix_mem_leak

* fix

* add cacheclean command

* fix coreedump

* Fix:mem leak (OpenAtomFoundation#329)

fix:hdel

Co-authored-by: chejinge <chejinge@360.cn>

* Update pika_admin.cc

* Update pika.conf

* Update pika.conf

* fix_license

* remove nullpter

---------

Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: Mixficsol <838844609@qq.com>
Co-authored-by: wuxianrong <wuxianrong@360.cn>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
Co-authored-by: alexstocks <alexstocks@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.2 ✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants