Commit Graph

3 Commits

Author SHA1 Message Date
Eric Mastro 9f22aad2f7
update release flow 2022-02-21 11:00:39 +11:00
Eric Mastro 4a0c654afd feat: add removeLru proc that returns removed LRU item
Add exception handling to entire cache.

`del` now returns the value that was deleted, using `Option[T]`. If nothing was deleted, `T.none` is returned.

`removeLru` removes the least recently used item and returns it, or throws an `EmptyLruCacheError` if the cache is empty.

Add tests for `removeLru`.
Modify `del` test for option.

Release 1.2.0
2022-02-18 19:25:45 +11:00
Jack Tang ba52c87cd8 fix name of .release-it and hooks 2020-05-08 00:09:22 +08:00