Replies: 3 comments 10 replies
-
Hi @xiaguan . By "the two bugs" I think you mean #338 and #339 . As I've replied in the issue. #338 is caused by a bug in S3FIFO implementation, and #339 is an expected behavior. For As far as my personal technical tastes are concerned, I prefer the way |
Beta Was this translation helpful? Give feedback.
-
And thanks again for your recent ideas on improving the interface of foyer. It is nice to have you for foyer. But just a reminder: A real user-friendly design must be built on meeting the user's needs first, not just makes the abstraction simple and clean. |
Beta Was this translation helpful? Give feedback.
-
Based on them, my main idea is, whether the user use or not use the ssd, the interface will reamin the same. And refer to
We could also use the All in all, if we both support |
Beta Was this translation helpful? Give feedback.
-
The two bugs found by fuzz all come from boundary cases in value size (0, out of bounds). I think using
get-size
crate instead of letting users set the value size could make things a bit easier, and the only extra overhead is a few addition operations duringinsert
. If users want customization, they can just implement theGetSize
trait themselves.We could simplify insert to take just two parameters, aligning it more with common cache practices, making it more user-friendly.
Beta Was this translation helpful? Give feedback.
All reactions