VertexCacheSdk.Command.CommandBase (vertexcache_sdk v1.0.0)

View Source

Provides shared helpers for implementing VertexCache SDK commands.

This module handles:

  • Raw response decoding and success/error detection
  • Default implementations for parse_response/1
  • Utility functions for setting command status

Commands can delegate to these helpers to keep their logic clean and testable.

Summary

Functions

execute(cmd_string, connector, parser_fn \\ fn _ -> nil end)

@spec execute(String.t(), VertexCacheSdk.Comm.ClientConnector.t(), (String.t() ->
                                                                any())) ::
  VertexCacheSdk.Model.CommandResult.t()