Search Results for

    Show / Hide Table of Contents

    Class PropertyCache<T>

    Cache for any type of object that enables cache invalidation for parallel instances via redis

    Inheritance
    System.Object
    PropertyCache<T>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Common.DataAccess
    Assembly: ImageVault.Core.dll
    Syntax
    public class PropertyCache<T>
        where T : class
    Type Parameters
    Name Description
    T

    Constructors

    PropertyCache(String, Func<T>, String)

    Constructs a PropertyCache object

    Declaration
    public PropertyCache(string name, Func<T> createFunc, string cachePrefix = null)
    Parameters
    Type Name Description
    System.String name

    Name of the property

    System.Func<T> createFunc

    A function for creating the property value

    System.String cachePrefix

    Properties

    Value

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T

    Methods

    Invalidate()

    Invalidate the property value

    Declaration
    public void Invalidate()
    In This Article
    Back to top (c) Meriworks 2002-2022