karlseguin / ccache

A golang LRU Cache for high concurrency
MIT License
1.28k stars 119 forks source link

Fetch return type seems inconsistent for LayeredCache #7

Closed jdeppe-pivotal closed 7 years ago

jdeppe-pivotal commented 7 years ago

LayeredCache.Fetch has return types of (interface{}, error). Why is interface{} being used instead of *Item when Cache.Fetch returns *Item?

Thanks.

karlseguin commented 7 years ago

fixed