add GCS cache

This commit is contained in:
Diego Marangoni 2017-08-30 13:41:32 -03:00 committed by Will Norris
parent 0fe3656939
commit 4b637567e3
2 changed files with 6 additions and 0 deletions

View file

@ -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: