Skip to content

Commit 7058c47

Browse files
- updated function signature in driver
1 parent 32fef48 commit 7058c47

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

memcached/memcached.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (c *MemcachedStore) StorePointer() bool {
4141
}
4242

4343
// 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) {
4545

4646
item, err := c.client.Get(key)
4747
if err != nil {

memory/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (c *MemoryStore) StorePointer() bool {
4040
}
4141

4242
// 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) {
4444
item, found := c.cache.Get(key)
4545
return item, found, nil
4646
}

redis/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *RedisConn) StorePointer() bool {
4848
}
4949

5050
// 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) {
5252

5353
val, err := redis.Bytes(c.conn.Do("GET", key))
5454
if err != nil {

ristretto/ristretto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (r *RistrettoStore) StorePointer() bool {
5050
// It is possible for nil to be returned while found is also true.
5151
//
5252
// 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) {
5454
item, found := r.Cache.Get(key)
5555
return item, found, nil
5656
}

0 commit comments

Comments
 (0)