VertexCacheSdk.Command behaviour (vertexcache_sdk v1.0.0)

View Source

Behaviour for all command modules that can be executed by the VertexCache SDK.

Implementations must define how the command is built and parsed, and return success/error status based on the response. This abstraction allows consistent handling of commands (e.g. GET, SET, DEL, PING) across the SDK.

Summary

Callbacks

build_command()

@callback build_command() :: String.t()

execute(t)

@callback execute(VertexCacheSdk.Comm.ClientConnector.t()) :: map()

parse_response(t)

@callback parse_response(String.t()) :: map()