pub fn cache_query_impl<const N: usize>(
c_params: &[DataField; N],
cache: &mut impl CacheAble<DataField, RowData, N>,
query_fn: impl FnOnce() -> KnowledgeResult<RowData>,
) -> RowDataExpand description
Generic cache wrapper: fetch from cache by c_params, otherwise run query_fn and save.