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

View Source

Handles the DEL command in VertexCache.

Deletes a key and its associated value from the cache. If the system is configured to allow idempotent deletes, then attempting to delete a non-existent key will still return a success response ("OK DEL (noop)").

Requires the client to have WRITE or ADMIN access.

Configuration:

  • del_command_idempotent: when true, deletion of missing keys does not result in an error.

Summary

Types

t()

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

Functions

build_command(del_command)

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

execute(del_command, connector)

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

new(key)

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

parse_response(response)

@spec parse_response(String.t()) :: :ok

Callback implementation for VertexCacheSdk.Command.parse_response/1.