TransactionalSet¶
- class TransactionalSet(name, transaction, context)[source]¶
Bases:
hazelcast.proxy.base.TransactionalProxy,Generic[hazelcast.types.ItemType]Transactional implementation of
Set.- add(item: hazelcast.types.ItemType) bool[source]¶
Transactional implementation of
Set.add(item)- Parameters
item – The new item to be added.
- Returns
Trueif item is added successfully,Falseotherwise.
- remove(item: hazelcast.types.ItemType) bool[source]¶
Transactional implementation of
Set.remove(item)- Parameters
item – The specified item to be deleted.
- Returns
Trueif item is remove successfully,Falseotherwise.
- size() int[source]¶
Transactional implementation of
Set.size()- Returns
Size of the set.