defmodule Microwaveprop.Valkey.Adapter do @moduledoc """ Behaviour for the Valkey/Redis command runner. The production implementation delegates to Redix; tests inject a Mox mock. """ @doc "Run a single Redis command." @callback command(Redix.connection(), [String.t()], keyword()) :: {:ok, term()} | {:error, term()} @doc "Run a pipeline of Redis commands." @callback pipeline(Redix.connection(), [[String.t()]], keyword()) :: {:ok, [term()]} | {:error, term()} end