• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Interface IDistributedHashSet<T>

This interface contains methods and parameters for distributed HashSet.

Inherited Members
IDistributedDataTypes.Key
IDistributedDataTypes.WriteThruOptions
ILockable.Lock(TimeSpan)
ILockable.Unlock()
INotifiable.RegisterNotification(DataTypeDataNotificationCallback, EventType, DataTypeEventDataFilter)
INotifiable.UnRegisterNotification(DataTypeDataNotificationCallback, EventType)
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface IDistributedHashSet<T> : ICollection<T>, IEnumerable<T>, IEnumerable, IDistributedDataTypes, ILockable, INotifiable
Type Parameters
Name Description
T

The type of the elements in the HashSet.

Methods

Name Description
AddRange(IEnumerable<T>)

Insert elements of the provided collection in IDistributedSet.

Difference(String)

Returns the difference of current set with the specified set.

GetRandom()

// Return a random element from the set.

GetRandom(Int32)

Returns count distinct random elements from the set.

Intersect(String)

Returns the intersection of current set with the specified set.

Remove(ICollection<T>)
RemoveRandom()

Removes and returns a random element from the set.

StoreDifference(String, String)

Take difference of current set with the specified set and store the result in a new destination set.

StoreIntersection(String, String)

Take intersection of current set with the specified set and store the result in a new destination set.

StoreUnion(String, String)

Take union of current set with the specified set and store the result in a new destination set.

Union(String)

Returns the union of current set with the specified set.

Back to top Copyright © 2017 Alachisoft