Commit Graph

132 Commits

Author SHA1 Message Date
李铭昕
11dabbf792 Merge branch 'master' into 2.1-merge
# Conflicts:
#	.travis.yml
#	composer.json
#	src/json-rpc/src/CoreMiddleware.php
2020-10-28 09:18:07 +08:00
李铭昕
06fe2ac429 Added workflows to test. 2020-10-27 23:42:29 +08:00
李铭昕
da784eef16
v2.0.16 (#2692) 2020-10-26 12:07:29 +08:00
djunny
f0a8d72d36
Added method getCacheTTL for CacheableInterface which can control cache time each models. (#2682)
Co-authored-by: dj <github@djunny.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 10:02:30 +08:00
李铭昕
c87e1ea319
Optimized code. (#2652) 2020-10-14 08:57:43 +08:00
李铭昕
4aa5e28d61
Upgrade phpunit to 9.4 (#2617) 2020-10-10 01:06:25 +08:00
李铭昕
0a1f01c4b9 Upgrade 2.0 to 2.1 2020-10-09 17:12:06 +08:00
李铭昕
ca134748ac
Added auto release. (#2504) 2020-09-14 12:43:30 +08:00
李铭昕
0c2387591c
Fixed invalid argument supplied for foreach(). (#2452)
* Update InvalidCacheManager.php

* Update CHANGELOG-2.0.md
2020-09-07 13:37:49 +08:00
李铭昕
e06423f853
Optimized code for deleting model cache when model deleted or saved in transaction. (#2438) 2020-09-05 11:31:19 +08:00
weskiller
30218c6275
Fixed model event dispatcher does not works for Pivot and MorphPivot. (#2427)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-04 10:36:02 +08:00
李铭昕
ab283efbfb
Optimized eager load when the type is In or InRaw for model-cache. (#2232) 2020-08-02 15:07:15 +08:00
李铭昕
d8c175585b
Format code. (#2122) 2020-07-15 17:05:45 +08:00
李铭昕
84a817b3d7 Added test cases for morphTo. 2020-07-07 10:02:50 +08:00
李铭昕
9651428dcf Added document. 2020-07-05 15:49:55 +08:00
李铭昕
f52f9923b8 Added loadCache for Collection by using EagerLoadListener. 2020-07-05 15:09:17 +08:00
李铭昕
5f7bcb5404 Added eager load for model-cache. 2020-07-05 15:00:10 +08:00
李铭昕
4cd23167b9 Fixed branch alias. 2020-06-19 21:11:07 +08:00
李铭昕
07f3d8d2e4
Fixed code standards. (#1844) 2020-06-01 14:01:52 +08:00
李铭昕
7d47d32eca Upgrade 1.1 to 2.0 2020-05-26 09:54:53 +08:00
李铭昕
69fbeebec2
Added RedisStringHandler for model-cache. (#1647)
* Added RedisStringHandler for model-cache.

* Deleted useless code.

* Optimized code.

* Update CHANGELOG.md
2020-04-30 07:06:58 +08:00
李铭昕
aa27e7eed0
Format all files. (#1562) 2020-04-16 11:41:10 +08:00
huangzhhui
b6c4510873 Optimize composer.json 2020-03-19 14:42:43 +08:00
李铭昕
461ed51e71 Added test cases. 2020-03-18 16:08:05 +08:00
李铭昕
df90e6d1c8 Removed useless code. 2020-03-18 15:34:27 +08:00
李铭昕
127b5e5098 Optimized code. 2020-03-18 15:19:26 +08:00
武杰
b63aae76b2 model cache default value 2020-03-18 12:03:47 +08:00
李铭昕
3cf6653d2c
Fixed attributes are not right, when the model has property hidden. (#1405) 2020-03-11 20:16:03 +08:00
李铭昕
4b316b5903 Fixed travis. 2019-12-15 20:37:25 +08:00
李铭昕
1290fd010f Merge branch 'master' into pr/944 2019-11-21 10:07:47 +08:00
李铭昕
547829e0f0
Fixed bug that RedisHandler::incr fails in cluster mode for model cache. (#956) 2019-11-15 15:43:55 +08:00
daydaygo
29c3fab4eb fix: update 2019-11-14 23:34:49 +08:00
daydaygo
dd18aed242 fix: change Annotation Useage to ConfigProvider 2019-11-14 18:19:50 +08:00
武杰
7af6490a94 Fixed bug (#939) 2019-11-13 17:32:03 +08:00
李铭昕
97dc1d1960 Added some test cases. 2019-11-13 14:43:42 +08:00
武杰
97663fe742 Added test case. 2019-11-13 14:28:52 +08:00
武杰
fc3b12934a Optimized increment to atomic operation 2019-11-13 14:17:18 +08:00
李铭昕
83094d3cbb Fixed newModelBuilder not compatible with parent. 2019-11-13 10:33:58 +08:00
武杰
3a5a61f186 Deleted useless code. 2019-11-13 10:27:56 +08:00
李铭昕
e3f0e81339 Added doc. 2019-11-12 18:38:21 +08:00
李铭昕
b6deba8a29 Optimized code. 2019-11-12 18:31:15 +08:00
李铭昕
a4eb511084 Optimized code. 2019-11-12 18:06:22 +08:00
武杰
70f8a79e6e 根据条件批量删除缓存 2019-11-12 17:08:03 +08:00
李铭昕
85042de806
Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
sy-records
fa14580e34 Modify license format 2019-10-07 10:15:52 +08:00
sy-records
dac71959dc rename license 2019-10-07 09:55:32 +08:00
huangzhhui
ff54744ed3 Refactor structure of ConfigProvider 2019-09-26 02:18:24 +08:00
李铭昕
dabe9d8c60 Update hyperf conponent version. 2019-08-14 15:52:21 +08:00
李铭昕
62f8fa4eea Update branch-alias to 1.1-dev. 2019-08-14 15:48:12 +08:00
Ye Wenbin
e4f614f95d fix RedisHandler class name 2019-08-07 16:21:06 +08:00
李铭昕
0f24ec78a9 Fixed Function Redis::delete() is deprecated 2019-08-05 16:24:15 +08:00
李铭昕
387b20d990 Optimized composer.json 2019-08-02 09:57:05 +08:00
李铭昕
6931156023 Keep tests out of other people's production. 2019-07-13 09:38:03 +08:00
李铭昕
cbafb70275 Added formatModel test. 2019-06-28 11:43:34 +08:00
李铭昕
67af4c404d Fixed invalid configuration handler for model-cache. 2019-06-28 11:34:49 +08:00
李铭昕
3d1216b38a Added JSON support for model-cache. 2019-06-28 10:50:53 +08:00
李铭昕
b58b3b4250 Added branch-alias for all components. 2019-06-20 17:52:16 +08:00
huangzhhui
2d99f48c5f Optimized 2019-06-20 00:45:40 +08:00
huangzhhui
2334b42e15 Updated component version to ~1.0.0 2019-06-19 20:05:52 +08:00
huangzhhui
d090c563b2 Format 2019-06-15 23:21:24 +08:00
李铭昕
3ee624ce07 Modified license Apache-2.0 to MIT in composer.json. 2019-06-06 14:39:22 +08:00
李铭昕
0ae73a7fd9 Added property pool for model-cache. 2019-05-31 15:51:38 +08:00
huangzhhui
bad4c0e19a Use MIT license 2019-05-29 20:39:59 +08:00
李铭昕
b9db93680a Added property empty_model_ttl for model-cache. 2019-05-15 16:51:06 +08:00
huangzhhui
e7c2882e57 Renamed domain name of comment 2019-04-28 14:15:50 +08:00
李铭昕
3b7272a075 Deleted useless code. 2019-04-16 18:13:26 +08:00
李铭昕
f467aa922f Fixed DeleteCacheListener process 2 times. 2019-04-01 15:12:46 +08:00
李铭昕
f03172e0c7 Optimize vendor:publish command and added publish for ConfigProvider. 2019-03-29 11:25:31 +08:00
李铭昕
3997eebb73 Added vendor:publish command. 2019-03-27 18:26:52 +08:00
李铭昕
6e58bcd485 Added proxy class cache. 2019-03-22 15:51:21 +08:00
李铭昕
199a47bef5 Fixed bug for not fire retrieved event when model create from cache. 2019-03-21 13:07:48 +08:00
huangzhhui
c56bad8488 Format all component except database and db-connection 2019-03-13 17:38:56 +08:00
李铭昕
c852eb41c9 Removes duplicate ids for findManyFromCache. 2019-03-13 12:19:12 +08:00
李铭昕
c5281d73ee Model must instance of CacheableInterface in model-cache. 2019-03-08 22:06:20 +08:00
李铭昕
6b0e9a76c8 Create a cache handler by container method make. 2019-03-01 09:48:28 +08:00
李铭昕
1c1819eab4 Return empty collection when ids is empty. 2019-02-23 16:04:02 +08:00
huangzhhui
05e03f7ccc Merge branch 'master' of github.com:hyperf-cloud/hyperf 2019-02-17 15:00:07 +08:00
huangzhhui
ef95c03daf Moved ApplicationContext to Utils from Framework 2019-02-17 14:58:39 +08:00
李铭昕
457f979310 Fixed: When model cache update, not only the modified fields are updated 2019-02-17 13:05:19 +08:00
huangzhhui
dbe18bb0eb Format all components 2019-02-15 02:19:19 +08:00
huangzhhui
42663bbde4 Moved StdoutLoggerInterface to Contract component from Framework component 2019-02-09 15:11:02 +08:00
李铭昕
0849fb092b Added model-cache component. 2019-02-08 00:27:40 +08:00