Skip to content

Commit

Permalink
fix redis return nil when skip
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Apr 6, 2017
1 parent 7be8b71 commit a3317b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func decode(b []byte, v interface{}) error {
// Get gets data
func (cache *Cache) Get(key *datastore.Key, dst interface{}) error {
if cache.Skip != nil && cache.Skip(key) {
return nil
return ds.ErrCacheNotFound
}

db := cache.Pool.Get()
Expand Down

0 comments on commit a3317b5

Please sign in to comment.