Riak Elixir Client v1.1.6 Riak.CRDT.Map View Source

Encapsulates Riak maps

Link to this section Summary

Functions

Delete a key from the map

Fetch the value associated to key with the key_type on map

Test if the key is contained in the map

List all keys of the map

Creates a new map

Update the key on the map by passing the value The value can be any other CRDT

Get the map size

Update the key on the map by passing the function fun to update the value based on the current value (if exists) as argument The key_type must be :register, :map, :set, :flag or :counter

Get the original value of the map

Link to this section Functions

Delete a key from the map

Fetch the value associated to key with the key_type on map

Test if the key is contained in the map

List all keys of the map

Update the key on the map by passing the value The value can be any other CRDT

Get the map size

Link to this function update(map, key_type, key, fun) View Source

Update the key on the map by passing the function fun to update the value based on the current value (if exists) as argument The key_type must be :register, :map, :set, :flag or :counter

Get the original value of the map