diff --git a/CHANGELOG.md b/CHANGELOG.md index c5fc3cd..8eaa2d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,17 @@ +## [0.12.1] - 2025-10-03 + +### 🐛 Bug Fixes + +- Replace cuckoo filter with bloom ## [0.12.0] - 2025-09-24 ### 🐛 Bug Fixes - Added fossa CI workflow + +### ⚙️ Miscellaneous Tasks + +- Release ## [0.11.10-rc.2] - 2025-09-18 ### 🐛 Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index 65b0c67..a7728bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -827,7 +827,7 @@ dependencies = [ [[package]] name = "dictionary" -version = "0.12.0" +version = "0.12.1" dependencies = [ "async-trait", "reactor", @@ -981,7 +981,7 @@ dependencies = [ [[package]] name = "fastedge-run" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "async-trait", @@ -1562,7 +1562,7 @@ dependencies = [ [[package]] name = "http-backend" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "claims", @@ -1604,7 +1604,7 @@ dependencies = [ [[package]] name = "http-service" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "async-trait", @@ -1986,7 +1986,7 @@ dependencies = [ [[package]] name = "key-value-store" -version = "0.12.0" +version = "0.12.1" dependencies = [ "async-trait", "reactor", @@ -2845,7 +2845,7 @@ dependencies = [ [[package]] name = "reactor" -version = "0.12.0" +version = "0.12.1" dependencies = [ "wasmtime", ] @@ -2967,7 +2967,7 @@ dependencies = [ [[package]] name = "runtime" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "async-trait", @@ -3161,7 +3161,7 @@ dependencies = [ [[package]] name = "secret" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "reactor", diff --git a/Cargo.toml b/Cargo.toml index f24a783..84e6efb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.12.0" +version = "0.12.1" edition = "2021" publish = false authors = ["FastEdge Development Team"] diff --git a/crates/key-value-store/src/lib.rs b/crates/key-value-store/src/lib.rs index 900c7ea..28808dc 100644 --- a/crates/key-value-store/src/lib.rs +++ b/crates/key-value-store/src/lib.rs @@ -24,7 +24,7 @@ pub trait Store: Sync + Send { async fn zscan(&self, key: &str, pattern: &str) -> Result, Error>; - async fn cf_exists(&self, key: &str, item: &str) -> Result; + async fn bf_exists(&self, key: &str, item: &str) -> Result; } #[async_trait::async_trait] @@ -85,14 +85,14 @@ impl key_value::HostStore for KeyValueStore { KeyValueStore::zscan(self, store_id, &key, &pattern).await } - async fn cf_exists( + async fn bf_exists( &mut self, store: Resource, key: String, item: String, ) -> Result { let store_id = store.rep(); - KeyValueStore::cf_exists(self, store_id, &key, &item).await + KeyValueStore::bf_exists(self, store_id, &key, &item).await } async fn drop(&mut self, store: Resource) -> Result<(), wasmtime::Error> { @@ -171,11 +171,11 @@ impl KeyValueStore { /// Get a value from a store by key. #[instrument(skip(self), level = "trace", ret, err)] - pub async fn cf_exists(&self, store: u32, key: &str, item: &str) -> Result { + pub async fn bf_exists(&self, store: u32, key: &str, item: &str) -> Result { let Some(store) = self.stores.get(store as usize) else { return Err(Error::NoSuchStore); }; - store.cf_exists(key, item).await + store.bf_exists(key, item).await } } diff --git a/crates/key-value-store/src/redis_impl.rs b/crates/key-value-store/src/redis_impl.rs index 9d60658..3771aa8 100644 --- a/crates/key-value-store/src/redis_impl.rs +++ b/crates/key-value-store/src/redis_impl.rs @@ -71,14 +71,14 @@ impl Store for RedisStore { Ok(ret) } - async fn cf_exists(&self, key: &str, item: &str) -> Result { - redis::cmd("CF.EXISTS") + async fn bf_exists(&self, key: &str, item: &str) -> Result { + redis::cmd("BF.EXISTS") .arg(key) .arg(item) .query_async(&mut self.inner.clone()) .await .map_err(|error| { - tracing::warn!(cause=?error, "redis cf_exists"); + tracing::warn!(cause=?error, "redis bf_exists"); Error::InternalError }) } diff --git a/sdk b/sdk index 8aa3aa9..5c85368 160000 --- a/sdk +++ b/sdk @@ -1 +1 @@ -Subproject commit 8aa3aa94e7a1f863249d1453b00f4cd154682080 +Subproject commit 5c85368c885ac9da94ae2dcdb75230df2205d14f