TransactionalMultiMap¶
-
class
TransactionalMultiMap(name, transaction)¶ Bases:
hazelcast.proxy.base.TransactionalProxyTransactional implementation of
MultiMap.-
put(key, value)¶ Transactional implementation of
MultiMap.put(key, value)- Parameters
key – (object), the key to be stored.
value – (object), the value to be stored.
- Returns
(bool),
trueif the size of the multimap is increased,falseif the multimap already contains the
key-value tuple.
-
get(key)¶ Transactional implementation of
MultiMap.get(key)- Parameters
key – (object), the key whose associated values are returned.
- Returns
(Sequence), the collection of the values associated with the key.
-
remove(key, value)¶ Transactional implementation of
MultiMap.remove(key, value)- Parameters
key – (object), the key of the entry to remove.
value – (object), the value of the entry to remove.
- Returns
-
remove_all(key)¶ Transactional implementation of
MultiMap.remove_all(key)- Parameters
key – (object), the key of the entries to remove.
- Returns
(list), the collection of the values associated with the key.
-
value_count(key)¶ Transactional implementation of
MultiMap.value_count(key)- Parameters
key – (object), the key whose number of values is to be returned.
- Returns
(int), the number of values matching the given key in the multimap.
-
size()¶ Transactional implementation of
MultiMap.size()- Returns
(int), the number of key-value tuples in the multimap.
-