View Source Momento.Validation (Momento Elixir SDK v0.4.0)

Link to this section Summary

Link to this section Functions

Link to this function

validate_cache_name(cache_name)

View Source
@spec validate_cache_name(cache_name :: String.t()) ::
  :ok | {:error, Momento.Error.t()}
Link to this function

validate_collection_ttl(collection_ttl)

View Source
@spec validate_collection_ttl(collection_ttl :: Momento.Requests.CollectionTtl.t()) ::
  :ok | {:error, Momento.Error.t()}
Link to this function

validate_index_range(start_index, end_index)

View Source
@spec validate_index_range(
  start_index :: integer() | nil,
  end_index :: integer() | nil
) ::
  :ok | {:error, Momento.Error.t()}
@spec validate_key(key :: binary()) :: :ok | {:error, Momento.Error.t()}
Link to this function

validate_not_nil(arg1, name)

View Source
@spec validate_not_nil(any(), String.t()) :: :ok | {:error, Momento.Error.t()}
@spec validate_score(score :: float()) :: :ok | {:error, Momento.Error.t()}
Link to this function

validate_sort_order(sort_order)

View Source
@spec validate_sort_order(sort_order :: atom()) :: :ok | {:error, Momento.Error.t()}
Link to this function

validate_sorted_set_elements(elements)

View Source
@spec validate_sorted_set_elements(
  elements :: %{required(binary()) => float()} | [{binary(), float()}]
) ::
  :ok | {:error, Momento.Error.t()}
Link to this function

validate_sorted_set_name(sorted_set_name)

View Source
@spec validate_sorted_set_name(sorted_set_name :: String.t()) ::
  :ok | {:error, Momento.Error.t()}
@spec validate_ttl(ttl :: float()) :: :ok | {:error, Momento.Error.t()}
@spec validate_value(value :: binary()) :: :ok | {:error, Momento.Error.t()}