semantic_commands/caches/no_cache.rs
1use anyhow::Result;
2
3use crate::Cache;
4pub struct NoCache;
5
6#[async_trait::async_trait]
7impl Cache for NoCache {
8 async fn get(&self, _: &str) -> Result<Option<Vec<f32>>> {
9 Ok(None)
10 }
11 async fn put(&self, _: &str, _: Vec<f32>) -> Result<()> {
12 Ok(())
13 }
14
15 async fn init(&self) -> Result<()> {
16 Ok(())
17 }
18}