Set a [`CacheFactory`] for custom caching strategy
(
mut self,
cache_factory: Option<Arc<dyn CacheFactory>>,
)
| 1478 | |
| 1479 | /// Set a [`CacheFactory`] for custom caching strategy |
| 1480 | pub fn with_cache_factory( |
| 1481 | mut self, |
| 1482 | cache_factory: Option<Arc<dyn CacheFactory>>, |
| 1483 | ) -> Self { |
| 1484 | self.cache_factory = cache_factory; |
| 1485 | self |
| 1486 | } |
| 1487 | |
| 1488 | /// Set a [`StatisticsRegistry`] for pluggable statistics providers. |
| 1489 | /// |
no outgoing calls