Commit Graph
92804 Commits
Author SHA1 Message Date
liugang d86ca596cb * [refac] calling methods in zredis to simplify. 2024-11-20 15:42:49 +08:00
liugang a6ed9b3b22 * [refac] refactor for the simplified configuration. 2024-11-20 15:42:49 +08:00
liugang 0a2a352327 * [perf] simplify configuration of redis cache. 2024-11-20 15:42:49 +08:00
朱金勇 a3c1dcaacf + [perf] Add cache handler. 2024-11-20 15:42:49 +08:00
liugang 3ad3f2dc48 * [perf] remove extra brackets. 2024-11-20 15:42:49 +08:00
朱金勇 b0e979d664 + [perf] Add cache model. 2024-11-20 15:42:49 +08:00
liugang 31c7691c57 + [perf] add methods to fetch data from redis cache. 2024-11-20 15:42:49 +08:00
liugang 178ca86858 * [perf] use optimistic locking to prevent duplicate cache initialization. 2024-11-20 15:42:49 +08:00
朱金勇 8292846100 * [perf] add redis set: config. 2024-11-20 15:42:49 +08:00
朱金勇 6df83d2655 + [perf] Add beginIf for cache. 2024-11-20 15:42:49 +08:00
liugang 46b69df3cc * [perf] fix the magic method didn't return result. 2024-11-20 15:42:49 +08:00
liugang 7fc4ed3782 * [perf] calling redis->setnx to implement a simple lock. 2024-11-20 15:42:49 +08:00
liugang 081b55d672 * [perf] don't encode chinese character to unicode. 2024-11-20 15:42:49 +08:00
liugang 4fe0dc4146 + [perf] add redis configuration. 2024-11-20 15:42:49 +08:00
liugang 4a893d7efc * [perf] fix error of deleting cache in redis. 2024-11-20 15:42:49 +08:00
朱金勇 aa5528372b + [perf] Add redis cache class. 2024-11-20 15:42:49 +08:00
朱金勇 70a8708327 * [perf] merge redis config. 2024-11-20 15:42:49 +08:00
liugang 015e5a80d4 * [perf] fetch last insert id only for insert execution. 2024-11-20 15:42:49 +08:00
liugang a69c3daf18 * [perf] modify id list to key list. 2024-11-20 15:42:49 +08:00
liugang 69c7e6e70f - [perf] remove unused method. 2024-11-20 15:42:49 +08:00
liugang d2ff16b305 * [perf] declare parameter type and return type. 2024-11-20 15:42:49 +08:00
liugang b44a49f6b3 - [perf] remove extra blank. 2024-11-20 15:42:49 +08:00
liugang 6e61afddd3 + [perf] add comment. 2024-11-20 15:42:49 +08:00
liugang 1181edf394 * [perf] change the synchronization flag to const. 2024-11-20 15:42:49 +08:00
liugang 793731b7ba * [perf] declare the initialization flag and synchronization flag as const. 2024-11-20 15:42:49 +08:00
liugang e355f52364 * [perf] fix error of fetching where clause. 2024-11-20 15:42:49 +08:00
liugang db71378c1c * [perf] change the access permission to private. 2024-11-20 15:42:49 +08:00
liugang 3b30db2223 * [perf] Keep the backticks to solve the problem of not matching the cache configuration. 2024-11-20 15:42:49 +08:00
liugang 088b153df4 * [perf] add method to get request uri. 2024-11-20 15:42:49 +08:00
liugang 9816cf18d9 * [perf] calling method of zredis to update cache. 2024-11-20 15:42:49 +08:00
liugang e6c1a08437 * [perf] pass instance of baseRouter class to zredis. 2024-11-20 15:42:49 +08:00
liugang 5fa08107da * [perf] refactor the zredis class. 2024-11-20 15:42:49 +08:00
liugang 445f995a26 * [perf] connect and initlize redis in zredis class. 2024-11-20 15:42:49 +08:00
liugang 7df002e23d - [perf] remove unused code of redis. 2024-11-20 15:42:49 +08:00
liugang 0f2418199a + [perf] add library of redis. 2024-11-20 15:42:49 +08:00
liugang a381015419 + [perf] enable redis in develop environment. 2024-11-20 15:42:49 +08:00
liugang aba9669e6e * [perf] fix error of add members to redis. 2024-11-20 15:42:49 +08:00
liugang a2a7aacca9 - [perf] remove unused code to flush redis. 2024-11-20 15:42:49 +08:00
liugang e24949ed41 * [perf] fix type error. 2024-11-20 15:42:49 +08:00
liugang d33ec696d2 + [perf] load data from database to redis. 2024-11-20 15:42:49 +08:00
liugang 46dbb9dff6 * [perf] replace the global $config with $config property of baseRouter class. 2024-11-20 15:42:49 +08:00
liugang f12f4caf37 - [perf] remove unused code. 2024-11-20 15:42:49 +08:00
liugang a3927838fd * [perf] load configuration file of redis. 2024-11-20 15:42:49 +08:00
liugang 43cba5fad2 + [perf] add configuration of redis. 2024-11-20 15:42:49 +08:00
liyang e9548b0b9e * [task#132857] add getPairs method unit test. 2024-11-20 15:41:15 +08:00
liyang c5e6ad3fcc * [task#132857] add getPairs method unit test. 2024-11-20 15:41:15 +08:00
liyang 98b1784c97 * [task#132857] add getPairs method unit test. 2024-11-20 15:41:15 +08:00
liyang af805b23e9 * [task#132857] add getList method unit test. 2024-11-20 15:41:15 +08:00
liyang 31314b6c62 * [task#132857] add create method unit test. 2024-11-20 15:41:15 +08:00
liyang 4addb0b835 * [task#132857] add create method unit test. 2024-11-20 15:41:15 +08:00