mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-29 06:46:23 +02:00
add GCS cache
This commit is contained in:
parent
0fe3656939
commit
4b637567e3
2 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/diegomarangoni/gcscache"
|
||||
"github.com/gregjones/httpcache"
|
||||
"github.com/gregjones/httpcache/diskcache"
|
||||
"github.com/peterbourgon/diskv"
|
||||
|
|
@ -126,6 +127,8 @@ func parseCache() (imageproxy.Cache, error) {
|
|||
case "s3":
|
||||
u.Scheme = "https"
|
||||
return s3cache.New(u.String()), nil
|
||||
case "gcs":
|
||||
return gcscache.New(u.String()), nil
|
||||
case "file":
|
||||
fallthrough
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue