pub type WeightCalculationFn<Key, Value> = dyn Fn(&Key, &Value, IsTimeToLiveSpecified) -> Weight + Send + Sync;Expand description
Defines the function for calculating the weight of the incoming key/value pair.
Default is the perform function defined in crate::cache::config::weight_calculation::Calculation.