View Source Momento.Validation (Momento Elixir SDK v0.4.0)
Link to this section Summary
Link to this section Functions
@spec validate_cache_name(cache_name :: String.t()) :: :ok | {:error, Momento.Error.t()}
@spec validate_collection_ttl(collection_ttl :: Momento.Requests.CollectionTtl.t()) :: :ok | {:error, Momento.Error.t()}
@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()}
@spec validate_not_nil(any(), String.t()) :: :ok | {:error, Momento.Error.t()}
@spec validate_score(score :: float()) :: :ok | {:error, Momento.Error.t()}
@spec validate_sort_order(sort_order :: atom()) :: :ok | {:error, Momento.Error.t()}
@spec validate_sorted_set_elements( elements :: %{required(binary()) => float()} | [{binary(), float()}] ) :: :ok | {:error, Momento.Error.t()}
@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()}