VertexCacheSdk.Command.Impl.GetCommand (vertexcache_sdk v1.0.0)

View Source

Handles the GET command in VertexCache.

Retrieves the value for a given key from the cache. Returns an error if the key is missing or expired.

Requires the client to have READ, READ_WRITE, or ADMIN access. This command supports primary key lookups only.

Summary

Types

t()

@type t() :: %VertexCacheSdk.Command.Impl.GetCommand{key: String.t()}

Functions

execute(get_command, connector)

@spec execute(t(), VertexCacheSdk.Comm.ClientConnector.t()) ::
  VertexCacheSdk.Model.GetResult.t()

new(key)

@spec new(String.t()) :: t()

parse_response(response)

@spec parse_response(String.t()) :: String.t() | no_return()

Callback implementation for VertexCacheSdk.Command.parse_response/1.