Commit Graph
63 Commits
Author SHA1 Message Date
wangyuting 66e0c279e8 * [task#143678,done,0.1h,0h] Finish project template view. 2025-05-23 14:01:10 +08:00
刘刚 0a81cc01e5 * [refac] fix typo. 2025-05-22 09:15:35 +08:00
刘刚 7f410e9901 * [refac] using dbh to execute database operation in cache. 2025-05-21 16:34:12 +08:00
liugang 5269509846 * [refac] fix error the variable $keys was overwritten. 2024-12-30 09:42:38 +08:00
liugang 31c20b0578 * [refac] if there is no cache, get the value of the primary key field that meets the query conditions from the database and update the cache. 2024-12-30 09:42:38 +08:00
liugang 11b4296139 + [refac] add a method to get data that meets the query conditions from the calculation results of the automatic cache. 2024-12-30 09:42:38 +08:00
liugang 1473c59af8 * [refac] modify the access permissions of method so that it can be called from other classes. 2024-12-30 09:42:38 +08:00
liugang 73d1b4cea1 * [refac] check variable's type before using it as an array. 2024-12-11 09:39:41 +08:00
liugang 50cb2310b6 * [refac] fix type error when the cache doesn't exist. 2024-12-11 09:32:15 +08:00
liugang 57aba89aad * [refac] don't update cache if the cache that stored all id list is empty. 2024-12-09 09:21:27 +08:00
liugang c243c1f56b * [bug#57811,1h] fix the inconsistency issue between cache data and database. 2024-12-09 09:21:27 +08:00
liugang f220bccb8f * [refac] if cache doesn't exist skip it. 2024-12-09 09:21:27 +08:00
liugang a8eb06666c * [refac] don't exlucde text fields in cache. 2024-12-03 16:49:06 +08:00
liugang 4ce078940b * [refac] filter empty value. 2024-11-28 17:33:35 +08:00
liugang f1fda82b0e * [refac] check if a variable is empty before using it as an array. 2024-11-25 08:52:41 +08:00
liugang 70b40dab3d * [refac] fix error generate affected keys. 2024-11-20 15:42:49 +08:00
liugang 8d5b8a28da - [refac] the affected object could be empty. 2024-11-20 15:42:49 +08:00
liugang 7954ef14e4 * [refac] fix error when the sql doesn't have where condition. 2024-11-20 15:42:49 +08:00
liugang 3dcd4cde2e + [refac] reset where condition to empty. 2024-11-20 15:42:49 +08:00
liugang 37d7879cf6 + [refac] select database after connected to redis server. 2024-11-20 15:42:49 +08:00
liugang 335d4e23bf * [refac] if not all data in cache, get the missing data from the database. 2024-11-20 15:42:49 +08:00
liugang 9c100fa04d * [refac] refactor cache library. 2024-11-20 15:42:49 +08:00
liugang 35b0b699aa * [refac] add method to create cache key. 2024-11-20 15:42:49 +08:00
liugang e55458ac98 * [refac] optimize ttl parameter. 2024-11-20 15:42:49 +08:00
liugang 77a2984c38 * [refac] user can set expiration of cache. 2024-11-20 15:42:49 +08:00
liugang 2e20324fe6 + [refac] close cache connection when program is shutdown. 2024-11-20 15:42:49 +08:00
liugang ccc5d3a888 + [refac] check if the label already used. 2024-11-20 15:42:49 +08:00
liugang a5be156308 * [refac] optimize error message. 2024-11-20 15:42:49 +08:00
liugang 5fea836c6e * [refac] fix class not found error. 2024-11-20 15:42:49 +08:00
liugang 14a0088b97 * [refac] return result of the method who cleared the cache. 2024-11-20 15:42:49 +08:00
liugang 4ff19d7ef3 * [refac] add namespace to resolve class name conflicts. 2024-11-20 15:42:49 +08:00
liugang 871637c2af * [refac] fix error. 2024-11-20 15:42:49 +08:00
liugang b6fe5f9318 * [refac] calling method in helper class to connect redis server. 2024-11-20 15:42:49 +08:00
liugang b0e0090809 + [refac] add method to get memory usage. 2024-11-20 15:42:49 +08:00
liugang c36e3e807c * [refac] add method to clear cache. 2024-11-20 15:42:49 +08:00
朱金勇 f1bb5c856f * [misc] Select into for cache. 2024-11-20 15:42:49 +08:00
liugang 0637346f85 + [refac] add method to clear cache. 2024-11-20 15:42:49 +08:00
liugang 4a01690b1e * [refac] simplify apcu driver class and redis driver class. 2024-11-20 15:42:49 +08:00
liugang ca997cd1c4 * [refac] add namespace and connector. 2024-11-20 15:42:49 +08:00
liugang f3c6734ae6 * [refac] set serializer of php redis. 2024-11-20 15:42:49 +08:00
liugang 61c1ad11ba * [refac] rename redis to cache. 2024-11-20 15:42:49 +08:00
liugang 06f71d7376 * [refac] fetch data of specified id list from cache. 2024-11-20 15:42:49 +08:00
liugang a3910b7afd + [refac] add method to get the data of the specified table and id from the cache. 2024-11-20 15:42:49 +08:00
liugang 2bf184edff * [refac] add method to get cache key. 2024-11-20 15:42:49 +08:00
liugang 732e342ca6 + [refac] initialize the cache of the specified table. 2024-11-20 15:42:49 +08:00
liugang 125e75249f * [refac] add method to connect redis server. 2024-11-20 15:42:49 +08:00
liugang 9ac773bade + [refac] add cache class to manage cache. 2024-11-20 15:42:49 +08:00
朱金勇 e530add989 * [perf] rename cache to mao 2024-11-20 15:42:49 +08:00
朱金勇 aa5528372b + [perf] Add redis cache class. 2024-11-20 15:42:49 +08:00
dingguodong 602fb54d68 * [task#121999] Adjust the comments. 2024-06-28 16:59:08 +08:00