Bryan
a398f35968
fix: fix postgresql support ( #606 )
...
* fix postgresql support
fixes #517
* fix: fix pg support
* chore: delete useless code
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
JustSong
f9b748c2ca
chore: add MEMORY_CACHE_ENABLED env variable
2023-09-29 11:38:27 +08:00
JustSong
a5647b1ea7
fix: fix priority not updated & random choice not working
2023-09-18 21:43:45 +08:00
Xyfacai
ecf8a6d875
feat: supprt channel priority now & record channel id in log ( #484 )
...
* feat: 支持设置渠道优先级 & 日志中显示使用的渠道ID
* fix: 设置渠道优先级未更新 ability
* chore: update implementation
---------
Co-authored-by: Xiangyuan Liu <xiangyuan.liu@ui.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-17 19:18:16 +08:00
JustSong
621eb91b46
chore: pass through error out
2023-09-03 21:31:58 +08:00
JustSong
86c2627c24
fix: update cache immediately after cache get
...
Co-authored-by: chikasaki <1347283135@qq.com>
Co-authored-by: Cruel <157922018@qq.com>
2023-08-16 23:40:50 +08:00
JustSong
4eea096654
chore: do not hardcode cache time ( close #302 )
2023-07-23 19:26:37 +08:00
JustSong
737672fb0b
fix: update cached user quota after post-consuming ( close #204 )
2023-06-27 19:22:58 +08:00
mrhaoji
f0dc7f3f06
fix: InitChannelCache does not filter disabled channels ( #201 )
...
* chore: Show the HTTP status code in the test_time script to determine the success or failure of the request.
* fix: InitChannelCache does not filter disabled channels
* chore: do not hardcode
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-25 23:14:15 +08:00
JustSong
00151a0124
chore: format logs
2023-06-22 10:59:01 +08:00
JustSong
6d961064d2
feat: do not access database before response return ( close #158 )
2023-06-21 17:26:26 +08:00
JustSong
ba54c71948
feat: select channel without database ( #158 )
2023-06-21 17:04:18 +08:00
JustSong
14b85318a6
fix: fix crash when Redis is enabled
2023-06-20 20:56:35 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
3d76a974d1
feat: use cache to avoid database access ( #158 )
2023-06-20 19:09:49 +08:00