Commit Graph
92823 Commits
Author SHA1 Message Date
liugang 1e620c2c79 * [perf] fix error of return type. 2024-11-20 15:42:49 +08:00
liugang 26d504325e + [refac] add method to set cache. 2024-11-20 15:42:49 +08:00
liugang af6067100e + [refac] add method to set cache in redis. 2024-11-20 15:42:49 +08:00
朱金勇 88d267c50e + [feat] Add getByKey of mao. 2024-11-20 15:42:49 +08:00
朱金勇 e530add989 * [perf] rename cache to mao 2024-11-20 15:42:49 +08:00
朱金勇 1b01378120 * [perf] Fix error. 2024-11-20 15:42:49 +08:00
liugang 28200cb337 * [refac] fix error. 2024-11-20 15:42:49 +08:00
liugang 1c79e4315e - [refac] remove unused code and file. 2024-11-20 15:42:49 +08:00
liugang 914ba50a55 * [refac] compatible with model.class.php. 2024-11-20 15:42:49 +08:00
liugang 5dac796032 Revert "* [perf] define table constant for cache."
This reverts commit 13032535d753725d03768e3468f219f24559a072.
2024-11-20 15:42:49 +08:00
liugang aa0f7e3279 - [refac] remove unused code of zredis. 2024-11-20 15:42:49 +08:00
liugang 90e52d53be - [refac] remove unused methods. 2024-11-20 15:42:49 +08:00
liugang 3839b68c3f + [perf] add example of cache handler. 2024-11-20 15:42:49 +08:00
liugang 19176ed148 * [refac] modify class comment. 2024-11-20 15:42:49 +08:00
liugang e278cffb60 * [refac] refactor the cacheModel. 2024-11-20 15:42:49 +08:00
liugang 68dfcea210 + [perf] add configuration of cached keys. 2024-11-20 15:42:49 +08:00
liugang 71adeffc32 * [perf] rename methods to fetch cache from redis. 2024-11-20 15:42:49 +08:00
liugang 6cfdbae44e * [perf] define table constant for cache. 2024-11-20 15:42:49 +08:00
liugang 69ca0a9ddc * [perf] remove extra blank. 2024-11-20 15:42:49 +08:00
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