Skip to content

Commit

Permalink
Add appengine/v2 memcache support (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalraja authored Jan 10, 2022
1 parent 1dd4bde commit 8ce2dd5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 50 deletions.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Cacher interface {
}

// Item is the unit of Cacher gets and sets.
// Taken from google.golang.org/appengine/memcache
// Taken from google.golang.org/appengine/v2/memcache
type Item struct {
// Key is the Item's key (250 bytes maximum).
Key string
Expand Down
4 changes: 2 additions & 2 deletions cachers/memcache/memcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package memcache
import (
"context"

"google.golang.org/appengine"
"google.golang.org/appengine/memcache"
"google.golang.org/appengine/v2"
"google.golang.org/appengine/v2/memcache"

"github.com/qedus/nds/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
go.opencensus.io v0.22.4
golang.org/x/sys v0.0.0-20200722175500-76b94024e4b6 // indirect
golang.org/x/tools v0.0.0-20200723000907-a7c6fd066f6d // indirect
google.golang.org/appengine v1.6.6
google.golang.org/appengine/v2 v2.0.1
google.golang.org/genproto v0.0.0-20200722002428-88e341933a54 // indirect
)

Expand Down
Loading

0 comments on commit 8ce2dd5

Please sign in to comment.