Get cached schema list if valid
(&mut self, current_version: u64)
| 80 | |
| 81 | /// Get cached schema list if valid |
| 82 | pub fn get_schema_list(&mut self, current_version: u64) -> Option<Vec<String>> { |
| 83 | if self.is_schema_list_valid(current_version) { |
| 84 | self.last_schema_access = Some(Instant::now()); |
| 85 | self.schema_list.clone() |
| 86 | } else { |
| 87 | None |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | /// Update schema list cache |
| 92 | pub fn set_schema_list(&mut self, schemas: Vec<String>, version: u64) { |
nothing calls this directly
no test coverage detected