Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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 b3b20e79dd cleanup 2024-09-09 12:45:19 +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 57f56125b0 feat: connection keys 2024-07-26 17:10:02 +08:00