homebrew-core/Formula/keydb.rb

23 lines
768 B
Ruby

class Keydb < Formula
desc "Multithreaded fork of Redis"
homepage "https://keydb.dev"
url "https://github.com/JohnSully/KeyDB/archive/v5.3.2.tar.gz"
sha256 "ed63e45889da4bec3cf1cc53e213c1d2f5b5569e079cb3f22dfe0c49cea1166b"
bottle do
cellar :any_skip_relocation
sha256 "af562aac5b3bdc1fd73a052b18ecc191e558e149fc874f9292edaccb58cb9ea2" => :catalina
sha256 "7ee213166db5963069cf66f1b364923e978ae5556741c9e2621103b02c51ce58" => :mojave
sha256 "5c889f1e756e3291a9ce8b9c96d5649e03c860d6cbf100fb015faf4ac964ec27" => :high_sierra
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
output = shell_output("#{bin}/keydb-server --test-memory 2")
assert_match "Your memory passed this test", output
end
end