Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set missing Expiration field on evicted items (#345)
On our use case we need to rely on expiration timestamps but we realized that they return zero timestamps. Our assumption is that this is due to a bug and not by design. ## Problem When `OnEvict` callback is executed `Item` does not have `Expiration` field set. Considering it is a public field this needs to be set and available. ## Solution Initialize `Expiration` field before calling the `onEvict` callback
- Loading branch information