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

    Class UpdateItemResult

    Helper class to create correct instances.

    Inheritance
    Object
    UpdateItemResult
    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 static class UpdateItemResult

    Methods

    | Improve this Doc View Source

    ForFactoryReturnedNull<TCacheValue>()

    Creates a new instance of the UpdateItemResult<TCacheValue> indicating that the cache value factory returned null instead of a valid value.

    Declaration
    public static UpdateItemResult<TCacheValue> ForFactoryReturnedNull<TCacheValue>()
    Returns
    Type Description
    UpdateItemResult<TCacheValue>

    The item result.

    Type Parameters
    Name Description
    TCacheValue

    The type of the cache value.

    | Improve this Doc View Source

    ForItemDidNotExist<TCacheValue>()

    Creates a new instance of the UpdateItemResult<TCacheValue> class with properties typical for the case where the cache item did not exist for an update operation.

    Declaration
    public static UpdateItemResult<TCacheValue> ForItemDidNotExist<TCacheValue>()
    Returns
    Type Description
    UpdateItemResult<TCacheValue>

    The item result.

    Type Parameters
    Name Description
    TCacheValue

    The type of the cache value.

    | Improve this Doc View Source

    ForSuccess<TCacheValue>(CacheItem<TCacheValue>, Boolean, Int32)

    Creates a new instance of the UpdateItemResult<TCacheValue> class with properties typical for a successful update operation.

    Declaration
    public static UpdateItemResult<TCacheValue> ForSuccess<TCacheValue>(CacheItem<TCacheValue> value, bool conflictOccurred = false, int triesNeeded = 1)
    Parameters
    Type Name Description
    CacheItem<TCacheValue> value

    The value.

    Boolean conflictOccurred

    Set to true if a conflict occurred.

    Int32 triesNeeded

    The tries needed.

    Returns
    Type Description
    UpdateItemResult<TCacheValue>

    The item result.

    Type Parameters
    Name Description
    TCacheValue

    The type of the cache value.

    | Improve this Doc View Source

    ForTooManyRetries<TCacheValue>(Int32)

    Creates a new instance of the UpdateItemResult<TCacheValue> class with properties typical for an update operation which failed because it exceeded the limit of tries.

    Declaration
    public static UpdateItemResult<TCacheValue> ForTooManyRetries<TCacheValue>(int triesNeeded)
    Parameters
    Type Name Description
    Int32 triesNeeded

    The tries needed.

    Returns
    Type Description
    UpdateItemResult<TCacheValue>

    The item result.

    Type Parameters
    Name Description
    TCacheValue

    The type of the cache value.

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