VertexCacheSdk.Command.Impl.SetCommand (vertexcache_sdk v1.0.0)
View SourceHandles the SET command in VertexCache.
Stores a value in the cache under the specified key, optionally assigning
secondary (idx1
) and tertiary (idx2
) indexes for lookup. Existing keys will
be overwritten. Supports expiration and format validation if configured.
Requires the client to have WRITE or ADMIN access.
Validation:
- Primary key and value are required.
- If secondary index is provided, it must be non-blank.
- If tertiary index is used, secondary index must also be present and non-blank.
Summary
Types
Functions
@spec execute(t(), VertexCacheSdk.Comm.ClientConnector.t()) :: VertexCacheSdk.Model.CommandResult.t()
Callback implementation for VertexCacheSdk.Command.parse_response/1
.