mirror of
https://github.com/go-gitea/gitea
synced 2025-08-02 15:48:35 +00:00
Allow common redis and leveldb connections (#12385)
* Allow common redis and leveldb connections Prevents multiple reopening of redis and leveldb connections to the same place by sharing connections. Further allows for more configurable redis connection type using the redisURI and a leveldbURI scheme. Signed-off-by: Andrew Thornton <art27@cantab.net> * add unit-test Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * add test Signed-off-by: Andrew Thornton <art27@cantab.net> * Update modules/cache/cache_redis.go * Update modules/queue/queue_disk.go * Update modules/cache/cache_redis.go * Update modules/cache/cache_redis.go * Update modules/queue/unique_queue_disk.go * Update modules/queue/queue_disk.go * Update modules/queue/unique_queue_disk.go * Update modules/session/redis.go Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
19
vendor/modules.txt
vendored
19
vendor/modules.txt
vendored
@@ -14,7 +14,6 @@ gitea.com/macaron/binding
|
||||
## explicit
|
||||
gitea.com/macaron/cache
|
||||
gitea.com/macaron/cache/memcache
|
||||
gitea.com/macaron/cache/redis
|
||||
# gitea.com/macaron/captcha v0.0.0-20190822015246-daa973478bae
|
||||
## explicit
|
||||
gitea.com/macaron/captcha
|
||||
@@ -44,7 +43,6 @@ gitea.com/macaron/session/memcache
|
||||
gitea.com/macaron/session/mysql
|
||||
gitea.com/macaron/session/nodb
|
||||
gitea.com/macaron/session/postgres
|
||||
gitea.com/macaron/session/redis
|
||||
# gitea.com/macaron/toolbox v0.0.0-20190822013122-05ff0fc766b7
|
||||
## explicit
|
||||
gitea.com/macaron/toolbox
|
||||
@@ -347,15 +345,15 @@ github.com/go-openapi/strfmt
|
||||
github.com/go-openapi/swag
|
||||
# github.com/go-openapi/validate v0.19.10
|
||||
github.com/go-openapi/validate
|
||||
# github.com/go-redis/redis v6.15.2+incompatible
|
||||
# github.com/go-redis/redis/v7 v7.4.0
|
||||
## explicit
|
||||
github.com/go-redis/redis
|
||||
github.com/go-redis/redis/internal
|
||||
github.com/go-redis/redis/internal/consistenthash
|
||||
github.com/go-redis/redis/internal/hashtag
|
||||
github.com/go-redis/redis/internal/pool
|
||||
github.com/go-redis/redis/internal/proto
|
||||
github.com/go-redis/redis/internal/util
|
||||
github.com/go-redis/redis/v7
|
||||
github.com/go-redis/redis/v7/internal
|
||||
github.com/go-redis/redis/v7/internal/consistenthash
|
||||
github.com/go-redis/redis/v7/internal/hashtag
|
||||
github.com/go-redis/redis/v7/internal/pool
|
||||
github.com/go-redis/redis/v7/internal/proto
|
||||
github.com/go-redis/redis/v7/internal/util
|
||||
# github.com/go-sql-driver/mysql v1.5.0
|
||||
## explicit
|
||||
github.com/go-sql-driver/mysql
|
||||
@@ -692,6 +690,7 @@ github.com/stretchr/testify/require
|
||||
# github.com/subosito/gotenv v1.2.0
|
||||
github.com/subosito/gotenv
|
||||
# github.com/syndtr/goleveldb v1.0.0
|
||||
## explicit
|
||||
github.com/syndtr/goleveldb/leveldb
|
||||
github.com/syndtr/goleveldb/leveldb/cache
|
||||
github.com/syndtr/goleveldb/leveldb/comparer
|
||||
|
Reference in New Issue
Block a user