• CacheManager
  • Documentation
  • Api Docs
  • MichaCo.net
    Show / Hide Table of Contents

    Class UpdateItemResult<TCacheValue>

    Used by cache handle implementations to let the cache manager know what happened during an update operation.

    Inheritance
    Object
    UpdateItemResult<TCacheValue>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:CacheManager.Core.Internal
    Assembly:CacheManager.Core.dll
    Syntax
    public class UpdateItemResult<TCacheValue>
    Type Parameters
    Name Description
    TCacheValue

    The type of the cache value.

    Properties

    | Improve this Doc View Source

    NumberOfTriesNeeded

    Gets the number of tries the cache needed to update the item.

    Declaration
    public int NumberOfTriesNeeded { get; }
    Property Value
    Type Description
    Int32

    The number of retries needed.

    | Improve this Doc View Source

    UpdateState

    Gets a value indicating whether the update operation was successful or not.

    Declaration
    public UpdateItemResultState UpdateState { get; }
    Property Value
    Type Description
    UpdateItemResultState

    The current UpdateItemResultState.

    | Improve this Doc View Source

    Value

    Gets the updated value.

    Declaration
    public CacheItem<TCacheValue> Value { get; }
    Property Value
    Type Description
    CacheItem<TCacheValue>

    The updated value.

    | Improve this Doc View Source

    VersionConflictOccurred

    Gets a value indicating whether a version conflict occurred during an update operation.

    Declaration
    public bool VersionConflictOccurred { get; }
    Property Value
    Type Description
    Boolean

    true if a version conflict occurred; otherwise, false.

    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net