jellydator / ttlcache

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

fixed the EvictionReason type #106

Open kaatinga opened 1 year ago

kaatinga commented 1 year ago

it seems nothing prevents to use type byte for EvictionReason, so we can save some memory here

davseby commented 1 year ago

Hmm, this change isn't backwards compatible (very slightly), I don't think that we we can include it in a non major release. @swithek What do you think.

swithek commented 1 year ago

I agree. Since this is a non-critical change, I think it would be best if we postponed its merge until the next major release.