Skip to content

Commit 5e0d703

Browse files
authored
Merge pull request #94 from G-Core/releases/v0.12.0
releases/v0.12.0
2 parents 7fed249 + 396dc1c commit 5e0d703

6 files changed

Lines changed: 27 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
## [0.12.1] - 2025-10-03
2+
3+
### 🐛 Bug Fixes
4+
5+
- Replace cuckoo filter with bloom
16
## [0.12.0] - 2025-09-24
27

38
### 🐛 Bug Fixes
49

510
- Added fossa CI workflow
11+
12+
### ⚙️ Miscellaneous Tasks
13+
14+
- Release
615
## [0.11.10-rc.2] - 2025-09-18
716

817
### 🐛 Bug Fixes

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.12.0"
6+
version = "0.12.1"
77
edition = "2021"
88
publish = false
99
authors = ["FastEdge Development Team"]

crates/key-value-store/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub trait Store: Sync + Send {
2424

2525
async fn zscan(&self, key: &str, pattern: &str) -> Result<Vec<(Value, f64)>, Error>;
2626

27-
async fn cf_exists(&self, key: &str, item: &str) -> Result<bool, Error>;
27+
async fn bf_exists(&self, key: &str, item: &str) -> Result<bool, Error>;
2828
}
2929

3030
#[async_trait::async_trait]
@@ -85,14 +85,14 @@ impl key_value::HostStore for KeyValueStore {
8585
KeyValueStore::zscan(self, store_id, &key, &pattern).await
8686
}
8787

88-
async fn cf_exists(
88+
async fn bf_exists(
8989
&mut self,
9090
store: Resource<key_value::Store>,
9191
key: String,
9292
item: String,
9393
) -> Result<bool, Error> {
9494
let store_id = store.rep();
95-
KeyValueStore::cf_exists(self, store_id, &key, &item).await
95+
KeyValueStore::bf_exists(self, store_id, &key, &item).await
9696
}
9797

9898
async fn drop(&mut self, store: Resource<key_value::Store>) -> Result<(), wasmtime::Error> {
@@ -171,11 +171,11 @@ impl KeyValueStore {
171171

172172
/// Get a value from a store by key.
173173
#[instrument(skip(self), level = "trace", ret, err)]
174-
pub async fn cf_exists(&self, store: u32, key: &str, item: &str) -> Result<bool, Error> {
174+
pub async fn bf_exists(&self, store: u32, key: &str, item: &str) -> Result<bool, Error> {
175175
let Some(store) = self.stores.get(store as usize) else {
176176
return Err(Error::NoSuchStore);
177177
};
178-
store.cf_exists(key, item).await
178+
store.bf_exists(key, item).await
179179
}
180180
}
181181

crates/key-value-store/src/redis_impl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ impl Store for RedisStore {
7171
Ok(ret)
7272
}
7373

74-
async fn cf_exists(&self, key: &str, item: &str) -> Result<bool, Error> {
75-
redis::cmd("CF.EXISTS")
74+
async fn bf_exists(&self, key: &str, item: &str) -> Result<bool, Error> {
75+
redis::cmd("BF.EXISTS")
7676
.arg(key)
7777
.arg(item)
7878
.query_async(&mut self.inner.clone())
7979
.await
8080
.map_err(|error| {
81-
tracing::warn!(cause=?error, "redis cf_exists");
81+
tracing::warn!(cause=?error, "redis bf_exists");
8282
Error::InternalError
8383
})
8484
}

0 commit comments

Comments
 (0)