Search Results for

    Show / Hide Table of Contents

    Interface IDbCachingPolicy

    Caching policy: defines which queries should be cached.

    Namespace: Apache.Ignite.EntityFramework
    Assembly: Apache.Ignite.EntityFramework.dll
    Syntax
    public interface IDbCachingPolicy

    Methods

    CanBeCached(DbQueryInfo)

    Determines whether the specified query can be cached.

    Declaration
    bool CanBeCached(DbQueryInfo queryInfo)
    Parameters
    Type Name Description
    DbQueryInfo queryInfo

    The query information.

    Returns
    Type Description
    System.Boolean

    true if the specified query can be cached; otherwise, false.

    CanBeCached(DbQueryInfo, Int32)

    Determines whether specified number of rows should be cached.

    Declaration
    bool CanBeCached(DbQueryInfo queryInfo, int rowCount)
    Parameters
    Type Name Description
    DbQueryInfo queryInfo

    The query information.

    System.Int32 rowCount

    The count of fetched rows.

    Returns
    Type Description
    System.Boolean

    GetCachingMode(DbQueryInfo)

    Gets the caching strategy for a give query.

    Declaration
    DbCachingMode GetCachingMode(DbQueryInfo queryInfo)
    Parameters
    Type Name Description
    DbQueryInfo queryInfo

    The query information.

    Returns
    Type Description
    DbCachingMode

    Caching strategy for the query.

    GetExpirationTimeout(DbQueryInfo)

    Gets the absolute expiration timeout for a given query.

    Declaration
    TimeSpan GetExpirationTimeout(DbQueryInfo queryInfo)
    Parameters
    Type Name Description
    DbQueryInfo queryInfo

    The query information.

    Returns
    Type Description
    System.TimeSpan

    Expiration timeout. System.TimeSpan.MaxValue for no expiration.

    In This Article
    Back to top © 2015 - 2019 The Apache Software Foundation