mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-27 22:06:24 +02:00
switch to use internal gcscache
This commit is contained in:
parent
7bf3645c10
commit
0c20cbe5b5
2 changed files with 6 additions and 4 deletions
|
|
@ -30,12 +30,12 @@ import (
|
|||
"github.com/PaulARoy/azurestoragecache"
|
||||
"github.com/die-net/lrucache"
|
||||
"github.com/die-net/lrucache/twotier"
|
||||
"github.com/diegomarangoni/gcscache"
|
||||
"github.com/garyburd/redigo/redis"
|
||||
"github.com/gregjones/httpcache/diskcache"
|
||||
rediscache "github.com/gregjones/httpcache/redis"
|
||||
"github.com/peterbourgon/diskv"
|
||||
"willnorris.com/go/imageproxy"
|
||||
"willnorris.com/go/imageproxy/internal/gcscache"
|
||||
"willnorris.com/go/imageproxy/internal/s3cache"
|
||||
)
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ func parseCache(c string) (imageproxy.Cache, error) {
|
|||
case "azure":
|
||||
return azurestoragecache.New("", "", u.Host)
|
||||
case "gcs":
|
||||
return gcscache.New(u.String()), nil
|
||||
return gcscache.New(u.Host, strings.TrimPrefix(u.Path, "/"))
|
||||
case "memory":
|
||||
return lruCache(u.Opaque)
|
||||
case "redis":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue