Skip to content

Commit

Permalink
Merge 615c2ce into 881fe56
Browse files Browse the repository at this point in the history
  • Loading branch information
buptliuwei authored Sep 7, 2019
2 parents 881fe56 + 615c2ce commit 9f6ed35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cachetable.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ func (table *CacheTable) Exists(key interface{}) bool {
return ok
}

// NotFoundAdd tests whether an item not found in the cache. Unlike the Exists
// method this also adds data if they key could not be found.
// NotFoundAdd checks whether an item is not yet cached. Unlike the Exists
// method this also adds data if the key could not be found.
func (table *CacheTable) NotFoundAdd(key interface{}, lifeSpan time.Duration, data interface{}) bool {
table.Lock()

Expand Down

0 comments on commit 9f6ed35

Please sign in to comment.