Skip to main content

detect_server_bin

Function detect_server_bin 

Source
pub fn detect_server_bin() -> String
Expand description

Detect the best redis-server binary.

Prefers the real redis-server binary inside a redis-stack-server Homebrew cask (not the wrapper script which overrides --dir), then falls back to redis-server on PATH.

ยงExample

use redis_server_wrapper::stack::detect_server_bin;

let bin = detect_server_bin();
println!("using redis-server binary: {bin}");