Logo
Explore Help
Sign In
studio/wfe
2
0
Fork 0
You've already forked wfe
Code Issues Pull Requests Actions Packages Releases 10 Activity
Files
7214d0ab5dd90fd34f08e39041bef18196673fec
wfe/wfe-valkey/tests/lock.rs

11 lines
299 B
Rust
Raw Normal View History

feat(wfe-valkey): add Valkey provider for locks, queues, and lifecycle events ValkeyLockProvider: SET NX EX for acquisition, Lua script for safe release. ValkeyQueueProvider: LPUSH/RPOP for FIFO queues. ValkeyLifecyclePublisher: PUBLISH to per-instance and global channels. Connections obtained once during construction (no per-operation TCP handshakes).
2026-03-25 20:14:07 +00:00
use wfe_core::lock_suite;
async fn make_provider() -> wfe_valkey::ValkeyLockProvider {
let prefix = format!("wfe_test_{}", uuid::Uuid::new_v4().simple());
style: apply cargo fmt workspace-wide Pure formatting pass from `cargo fmt --all`. No logic changes. Separating this out so the 1.9 release feature commits that follow show only their intentional edits.
2026-04-07 18:44:21 +01:00
wfe_valkey::ValkeyLockProvider::new("redis://localhost:6379", &prefix)
.await
.unwrap()
feat(wfe-valkey): add Valkey provider for locks, queues, and lifecycle events ValkeyLockProvider: SET NX EX for acquisition, Lua script for safe release. ValkeyQueueProvider: LPUSH/RPOP for FIFO queues. ValkeyLifecyclePublisher: PUBLISH to per-instance and global channels. Connections obtained once during construction (no per-operation TCP handshakes).
2026-03-25 20:14:07 +00:00
}
lock_suite!(make_provider);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 34ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API