|
|
@ -175,11 +175,11 @@ func (c cacheNode) doTake(v interface{}, key string, query func(v interface{}) e
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if fresh {
|
|
|
|
if fresh {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// got the result from previous ongoing query
|
|
|
|
// got the result from previous ongoing query
|
|
|
|
c.stat.IncrementTotal()
|
|
|
|
c.stat.IncrementTotal()
|
|
|
|
c.stat.IncrementHit()
|
|
|
|
c.stat.IncrementHit()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return jsonx.Unmarshal(val.([]byte), v)
|
|
|
|
return jsonx.Unmarshal(val.([]byte), v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|