-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mlcache) implement negative TTL for misses
- Loading branch information
1 parent
657ca9a
commit efe4b70
Showing
3 changed files
with
139 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
this style is very confusing, on first look it looks like it does return a
nil + error
. If you want to throw an error, then replace thereturn error(...)
calls with anassert
, that makes the intent a lot clearer imo.There are lots of those.