File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ package cachestore
33import (
44 "os"
55 "fmt"
6- < % if eq (index .Params `cachestore ` ) "redis" % >
6+ < % if eq (index .Params `cacheStore ` ) "redis" % >
77 "context"
88 "github.com/go-redis/redis/v8"
99< % end % >
10- < % if eq (index .Params `cachestore ` ) "memcached" % >
10+ < % if eq (index .Params `cacheStore ` ) "memcached" % >
1111 "github.com/bradfitz/gomemcache/memcache"
1212< % end % >
1313)
1414
1515var cacheEndpoint = os .Getenv ("CACHE_ENDPOINT" )
1616var cachePort = os .Getenv ("CACHE_PORT" )
1717
18- < % if eq (index .Params `cachestore ` ) "redis" % >
18+ < % if eq (index .Params `cacheStore ` ) "redis" % >
1919func TestConnection () {
2020 context := context .Background ()
2121 rdb := redis .NewClient (& redis.Options {
@@ -31,7 +31,7 @@ func TestConnection() {
3131}
3232< % end % >
3333
34- < % if eq (index .Params `cachestore ` ) "memcached" % >
34+ < % if eq (index .Params `cacheStore ` ) "memcached" % >
3535func TestConnection () {
3636 mc := memcache .New (fmt .Sprintf ("%s:%s" , cacheEndpoint , cachePort ))
3737 err := mc .Set (& memcache.Item {Key : "cache-test" , Value : []byte ("value" )})
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
2424< % if eq (index .Params `billingEnabled` ) "yes" % >
2525 "<% .Files.Repository %>/internal/billing"
2626< % - end % >
27- < % if neq (index .Params `cachestore ` ) "none" % >
27+ < % if neq (index .Params `cacheStore ` ) "none" % >
2828 "<% .Files.Repository %>/internal/cachestore"
2929< % end % >
3030)
@@ -38,7 +38,7 @@ func main() {
3838 db := database .Connect ()
3939 db .TestConnection ()
4040
41- < % if neq (index .Params `cachestore ` ) "none" % >
41+ < % if neq (index .Params `cacheStore ` ) "none" % >
4242 // test cacheStore connection
4343 cachestore .TestConnection ()
4444< % end % >
You can’t perform that action at this time.
0 commit comments