about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-03 12:36:30 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-03 12:36:30 +0000
commita1b09cbe4fc14e653c84b07f39ebd9ccb5f9711e (patch)
tree0333921f1575fd168129ecf64d97a34bbc8c00d6
parent417d4df76ae88e5b7e1fe9e5085646e51fc9e276 (diff)
downloadfocaccia-a1b09cbe4fc14e653c84b07f39ebd9ccb5f9711e.tar.gz
focaccia-a1b09cbe4fc14e653c84b07f39ebd9ccb5f9711e.zip
Add basic support for memcached
-rw-r--r--flake.nix7
-rw-r--r--reproducers/memcached.basic.sh5
2 files changed, 12 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 5aebf84..745c414 100644
--- a/flake.nix
+++ b/flake.nix
@@ -272,6 +272,10 @@
 			doCheck = false;
 		});
 
+		musl-minimal-memcached-nocheck = musl-minimal-pkgs.pkgsStatic.memcached.overrideAttrs (old: {
+			doCheck = false;
+		});
+
 		rr = pkgs.rr.overrideAttrs (old: {
 			pname = "focaccia-rr";
 			version = "git";
@@ -419,6 +423,9 @@
 					pkgs.capnproto
 					musl-pkgs.pkg-config
 					musl-minimal-redis-nocheck
+
+					musl-minimal-memcached-nocheck
+					pkgs.memtier-benchmark # needed to test memcached
 				];
 
 				hardeningDisable = [ "pie" ];
diff --git a/reproducers/memcached.basic.sh b/reproducers/memcached.basic.sh
new file mode 100644
index 0000000..5ee1f73
--- /dev/null
+++ b/reproducers/memcached.basic.sh
@@ -0,0 +1,5 @@
+#! /bin/bash
+
+# Tests memcache
+memtier_benchmark -p 11211 -t 4 -c 4 --ratio=1:1 --protocol=memcache_test
+