Insert a value into the cache with default TTL
(&self, key: K, value: V)
| 220 | |
| 221 | /// Insert a value into the cache with default TTL |
| 222 | pub fn insert(&self, key: K, value: V) { |
| 223 | self.insert_with_ttl(key, value, self.config.default_ttl); |
| 224 | } |
| 225 | |
| 226 | /// Insert a value into the cache with custom TTL |
| 227 | pub fn insert_with_ttl(&self, key: K, value: V, ttl: Duration) { |