diff options
author | zeripath <art27@cantab.net> | 2020-09-27 22:09:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 00:09:46 +0300 |
commit | 7f8e3192cd941f008a3a2413ca0e9ff90c02fd88 (patch) | |
tree | a22a8feb40925b85fca67fff316ba45eef49155f /vendor/modules.txt | |
parent | f404bdde9bec5fb7badf3a5ca1c503a2a884f315 (diff) | |
download | gitea-7f8e3192cd941f008a3a2413ca0e9ff90c02fd88.tar.gz gitea-7f8e3192cd941f008a3a2413ca0e9ff90c02fd88.zip |
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>
Diffstat (limited to 'vendor/modules.txt')
-rw-r--r-- | vendor/modules.txt | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/vendor/modules.txt b/vendor/modules.txt index 23a6d82d96..e4cee3b31f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -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 -## 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 v7.4.0 +## explicit +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 |