File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func (c *MemcachedStore) StorePointer() bool {
41
41
}
42
42
43
43
// Get retrieves a value from the cache. The key must be at most 250 bytes in length.
44
- func (c * MemcachedStore ) Get (key string ) (interface {}, bool , error ) {
44
+ func (c * MemcachedStore ) Get (key string ) (_ interface {}, found bool , _ error ) {
45
45
46
46
item , err := c .client .Get (key )
47
47
if err != nil {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (c *MemoryStore) StorePointer() bool {
40
40
}
41
41
42
42
// Get returns a value from the cache if the key exists.
43
- func (c * MemoryStore ) Get (key string ) (interface {}, bool , error ) {
43
+ func (c * MemoryStore ) Get (key string ) (_ interface {}, found bool , _ error ) {
44
44
item , found := c .cache .Get (key )
45
45
return item , found , nil
46
46
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func (c *RedisConn) StorePointer() bool {
48
48
}
49
49
50
50
// Get returns a value from the cache if the key exists.
51
- func (c * RedisConn ) Get (key string ) (interface {}, bool , error ) {
51
+ func (c * RedisConn ) Get (key string ) (_ interface {}, found bool , _ error ) {
52
52
53
53
val , err := redis .Bytes (c .conn .Do ("GET" , key ))
54
54
if err != nil {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func (r *RistrettoStore) StorePointer() bool {
50
50
// It is possible for nil to be returned while found is also true.
51
51
//
52
52
// See: https://godoc.org/github.com/dgraph-io/ristretto#Cache.Get
53
- func (r * RistrettoStore ) Get (key string ) (interface {}, bool , error ) {
53
+ func (r * RistrettoStore ) Get (key string ) (_ interface {}, found bool , _ error ) {
54
54
item , found := r .Cache .Get (key )
55
55
return item , found , nil
56
56
}
You can’t perform that action at this time.
0 commit comments