Search Results for

    Show / Hide Table of Contents

    Class EphemeralLayoutCache<T1, T2>

    NOTE: the Key (T1) must never be a struct - or else all requests will return 'cache hit' with an empty value

    Inheritance
    Object
    EphemeralLayoutCache<T1, T2>
    Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
    Assembly: cs.temp.dll.dll
    Syntax
    public class EphemeralLayoutCache<T1, T2>
    Type Parameters
    Name Description
    T1
    T2

    Constructors

    - (void) EphemeralLayoutCache()

    - (void) EphemeralLayoutCache(IEqualityComparer)

    Parameters
    IEqualityComparer<T1> comparer

    Fields

    - (Dictionary<T1, T2>) _cache

    Properties

    - (List<T1>) contents

    - (Int32) Count

    Methods

    - (void) CacheInvalidate(T1)

    NB: not required when doing truly ephemeral caches!

    Parameters
    T1 completedRequest

    - (Boolean) CacheLookup(T1, out T2)

    Parameters
    T1 request
    T2 result
    Returns
    Boolean

    - (void) CacheStore(T1, T2)

    Parameters
    T1 completedRequest
    T2 result

    - (void) Clear()

    - (void) DebugMiss(T1)

    Parameters
    T1 key

    - (String) ToString()

    Returns
    String
    Overrides
    Object.ToString()
    In This Article
    Back to top http://flexbuilder.ninja