Expand description
Cost is a trait you can pass to the CacheBuilder in order to evaluate
item cost at runtime, and only for the insert calls that aren’t dropped (this is
useful if calculating item cost is particularly expensive, and you don’t want to
waste time on items that will be dropped anyways).
To signal to Stretto that you’d like to use this Coster trait:
- Set the Coster field to your own Coster implementation.
- When calling
insertfor new items or item updates, use acostof 0.