View Source Momento.Internal.ScsDataClient (Momento Elixir SDK v0.4.0)
Link to this section Summary
Link to this section Types
@opaque t()
Link to this section Functions
@spec create!(Momento.Auth.CredentialProvider.t()) :: t()
@spec delete(data_client :: t(), cache_name :: String.t(), key :: binary()) :: Momento.Responses.Delete.t()
@spec get(data_client :: t(), cache_name :: String.t(), key :: binary()) :: Momento.Responses.Get.t()
Link to this function
sorted_set_fetch_by_rank(data_client, cache_name, sorted_set_name, start_rank \\ nil, end_rank \\ nil, sort_order \\ :asc)
View Source
Link to this function
sorted_set_fetch_by_score(data_client, cache_name, sorted_set_name, min_score, max_score, offset, count, sort_order)
View Source
Link to this function
sorted_set_get_rank(data_client, cache_name, sorted_set_name, value, sort_order)
View Source@spec sorted_set_get_rank( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), value :: binary(), sort_order :: :asc | :desc ) :: Momento.Responses.SortedSet.GetRank.t()
Link to this function
sorted_set_get_score(data_client, cache_name, sorted_set_name, value)
View Source@spec sorted_set_get_score( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), value :: binary() ) :: Momento.Responses.SortedSet.GetScore.t()
Link to this function
sorted_set_get_scores(data_client, cache_name, sorted_set_name, values)
View Source@spec sorted_set_get_scores( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), values :: [binary()] ) :: Momento.Responses.SortedSet.GetScores.t()
Link to this function
sorted_set_increment_score(data_client, cache_name, sorted_set_name, value, amount, collection_ttl)
View Source@spec sorted_set_increment_score( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), value :: binary(), amount :: float(), collection_ttl :: Momento.Requests.CollectionTtl.t() ) :: Momento.Responses.SortedSet.IncrementScore.t()
Link to this function
sorted_set_put_elements(data_client, cache_name, sorted_set_name, elements, collection_ttl)
View Source@spec sorted_set_put_elements( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), elements :: %{required(binary()) => float()} | [{binary(), float()}], collection_ttl :: Momento.Requests.CollectionTtl.t() ) :: Momento.Responses.SortedSet.PutElements.t()
Link to this function
sorted_set_remove_elements(data_client, cache_name, sorted_set_name, values)
View Source@spec sorted_set_remove_elements( data_client :: t(), cache_name :: String.t(), sorted_set_name :: String.t(), values :: [binary()] ) :: Momento.Responses.SortedSet.RemoveElements.t()