Commit Graph

42 Commits

Author SHA1 Message Date
Blackoutta b86f12fbaa Add Redis caching to FetchPluginInstallation middleware for performance optimization (#400)
* add caching to fetch plugin installation middleware

* invalidate plugin inst cache after successfully upgrading or uninstalling operations

* optimize: refactored cache invalidation ops from curd layer to service layer

---------

Co-authored-by: yangyi.hu593671 <yangyi.hu593671@seres.cn>
2025-08-27 14:16:52 +08:00
Yeuoly 8380c1d6fa fix(lock): Add concurrency test for Redis lock functionality (#305)
- Introduced a new test case `TestLock` to validate the behavior of the Redis locking mechanism under concurrent access.
- Enhanced the `Lock` function to improve error handling and ensure proper locking behavior.
- Utilized `sync.WaitGroup` and atomic operations to measure wait times during lock acquisition, ensuring the lock behaves as expected under high concurrency.
2025-05-23 14:39:37 +08:00
Zhi 6b112bc8b5 feat(redis): Add support for Redis Sentinel mode (#276)
* feat(redis): Add support for Redis Sentinel mode

Added support for Redis Sentinel mode to the Redis client, enabling automatic discovery and connection to the primary node through Sentinel. Updated relevant configuration files and initialization logic to support Sentinel mode configuration and connection.

* add lost RedisUser.
2025-05-20 14:23:01 +08:00
Taeyoung Park 5d83258371 Add optional Redis username authentication (#218)
* You can include username for Redis Auth

* Redis auth with username - test code update

* fix: tests

---------

Co-authored-by: Yeuoly <admin@srmxy.cn>
2025-04-25 20:42:14 +08:00
非法操作 25e013618a fix self.session.delete alway success (#12)
* fix self.session.delete alway success

* fix save data always failed

* redis delete response deleted item num

* add deleted num to invocate response
2025-04-11 13:32:52 +08:00
zxfishhack c7a104b07b fix unit test 2025-03-31 14:54:01 +08:00
Yeuoly b5fefd1a99 Merge pull request #152 from quicksandznzn/add-redis-db-config
optimize: add redis db config
2025-03-30 21:10:27 +09:00
zxfishhack 5cfd484cff Add get/delete implement, from internal use. 2025-03-27 17:02:21 +08:00
quicksandzn b50a0c4403 optimize: add redis db config 2025-03-27 14:48:59 +08:00
zxfishhack 3c49043a32 BUGFIX: fix AutoGetWithGetter will never hit cache issue. 2025-03-24 17:14:28 +08:00
zxfishhack 7d8a655ef6 BUGFIX: fix AutoGetWithGetter will never hit cache issue. 2025-03-24 17:02:28 +08:00
Yeuoly 324cea6c2b fix: improve Redis subscription error handling with logging and retry (#84) 2025-03-10 13:43:04 +08:00
Yeuoly 541050b9da refactor: update Redis cache SetNX method to use CBOR encoding 2025-02-25 23:12:05 +08:00
Yeuoly 2dc8f0c01d fix: improve Redis cache Get method for CBOR decoding 2025-02-25 22:45:06 +08:00
Yeuoly 6d63795993 refactor: switch Redis cache from JSON to CBOR encoding 2025-02-25 22:40:47 +08:00
Yeuoly b19140ca23 refactor: optimize plugin declaration caching and encoding (#34) 2025-02-25 20:52:51 +08:00
Yeuoly 507cf3722d fix: undercase to snakecase 2025-02-10 16:02:38 +08:00
Masashi Tomooka c6c882e86a support REDIS_USE_SSL config parameter (#21)
* support REDIS_USE_SSL config parameter

* fix tests

* add tests
2025-01-30 00:32:38 +08:00
Yeuoly 15060ee312 refactor: move entities to pkg 2025-01-06 14:52:02 +08:00
Yeuoly f9fc134982 fix: optimize error messages 2024-12-03 14:05:58 +08:00
Yeuoly ed5c779c7f fix: remove tenant_id from cache keys 2024-11-13 16:05:00 +08:00
Yeuoly 843fefdc57 fix: typo 2024-11-13 15:59:41 +08:00
Yeuoly eb1456b0d0 refactor: using finer granularity to cache PluginDeclaration 2024-11-13 15:54:45 +08:00
Yeuoly 4d64971160 fix: fetching plugin model from CombinedGetPluginDeclaration shoud be invaild 2024-11-12 22:58:59 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly eeadb3e29c refactor: support upgrade plugin to any verions 2024-10-25 17:41:14 +08:00
Yeuoly d39d8ffcfd feat: support plugin decoder api 2024-10-14 21:15:42 +08:00
Yeuoly 6e713f7c4f fix: supplement tests for redis auto type getter 2024-09-27 19:39:49 +08:00
Yeuoly 01a9503fc2 fix: add tests for redis getter auto type 2024-09-27 19:34:05 +08:00
Yeuoly 9679ae00f3 enhancement: support plugin cache 2024-09-27 19:34:05 +08:00
Yeuoly b3b20e79dd cleanup 2024-09-09 12:45:19 +08:00
Yeuoly 6926e58717 fix: redis subcribe 2024-09-05 22:28:45 +08:00
Yeuoly 4ea1f0b6a2 feat: persistence 2024-08-28 23:06:28 +08:00
Yeuoly 873549528e feat: implement persistence 2024-08-28 17:55:51 +08:00
Yeuoly caa0b44a56 refactor: tests 2024-08-05 13:45:43 +08:00
Yeuoly 69c402fcea feat: cluster lifetime management 2024-07-31 18:53:26 +08:00
Yeuoly b2c4e5cd5f feat: add redis scan hmap 2024-07-30 22:08:06 +08:00
Yeuoly 367cad55da feat: cluster managment 2024-07-30 17:36:32 +08:00
Yeuoly 4df1d043ac fix: backwards invocation 2024-07-29 15:26:40 +08:00
Yeuoly 57f56125b0 feat: connection keys 2024-07-26 17:10:02 +08:00
Yeuoly c9dc8aadef feat: invoke tool and models 2024-07-19 17:45:00 +08:00
Yeuoly 1af5a2ec11 feat: lifetime manager 2024-07-05 22:55:24 +08:00