(&self)
| 653 | } |
| 654 | |
| 655 | pub fn create_cache<K, V>(&self) -> TtlCache<K, V> |
| 656 | where |
| 657 | K: Eq + Hash + Clone, |
| 658 | V: Clone, |
| 659 | { |
| 660 | TtlCache::with_config(self.config.clone()) |
| 661 | } |
| 662 | |
| 663 | pub fn create_string_cache(&self) -> TtlCache<String, String> { |
| 664 | self.create_cache() |