muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters
Other
2.11k stars 516 forks source link

add method NotFoundAdd. #2

Closed winxxp closed 8 years ago

muesli commented 8 years ago

Thanks for this! I'm not sure I'm happy with the naming convention yet (speaking about cache2go as a whole, not just your method), but I'll think about this first.

winxxp commented 8 years ago

Thanks, First I add this mothod, just because I found Exist() and Add() method is working together in most time , so if working correct, we must create a locker to encolse this two methods; Second, about the method name, I concede that not a appropriate name, we can replace a more meaningful name.