Store a response in the cache
(&self, query: String, response: CachedWireResponse)
| 37 | |
| 38 | /// Store a response in the cache |
| 39 | pub fn put(&self, query: String, response: CachedWireResponse) { |
| 40 | let mut cache = self.cache.write(); |
| 41 | cache.put(query, Arc::new(response)); |
| 42 | } |
| 43 | |
| 44 | /// Clear the cache |
| 45 | pub fn clear(&self) { |
no outgoing calls