jellydator / ttlcache

An in-memory cache with item expiration and generics
MIT License
930 stars 116 forks source link

docs: fixed signature of function argument #94

Closed fabiant7t closed 1 year ago

fabiant7t commented 1 year ago

The function passed to ttlcache.OnInsertion and ttlcache.OnEviction requires context.Context as the first argument after commit https://github.com/jellydator/ttlcache/commit/5b5ae2bb953b3dfc15154dd31946dd42957d9a69

I updated the examples accordingly.