Struct CacheResult<T>
Represents a cache operation result with a success flag.
Implements
Namespace: Apache.Ignite.Core.Cache
Assembly: Apache.Ignite.Core.dll
Syntax
public struct CacheResult<T>
Type Parameters
Name | Description |
---|---|
T | Operation result value type. |
Constructors
CacheResult(T)
Initializes a new instance of the CacheResult<T> struct with a specified value and sets success flag to true.
Declaration
public CacheResult(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
Properties
Success
Gets a value indicating whether the operation completed successfully.
Declaration
public readonly bool Success { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
Gets the cache value.
Declaration
public readonly T Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Equals(CacheResult<T>)
Determines whether the specified
Declaration
public bool Equals(CacheResult<T> other)
Parameters
Type | Name | Description |
---|---|---|
CacheResult<T> | other | The |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Determines whether the specified
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Operators
Equality(CacheResult<T>, CacheResult<T>)
Implements the operator ==.
Declaration
public static bool operator ==(CacheResult<T> left, CacheResult<T> right)
Parameters
Type | Name | Description |
---|---|---|
CacheResult<T> | left | The left. |
CacheResult<T> | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(CacheResult<T>, CacheResult<T>)
Implements the operator !=.
Declaration
public static bool operator !=(CacheResult<T> left, CacheResult<T> right)
Parameters
Type | Name | Description |
---|---|---|
CacheResult<T> | left | The left. |
CacheResult<T> | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |