Show / Hide Table of Contents

    Interface ICacheClient<TK, TV>

    Client cache API. See GetCache<TK, TV>(String).

    Namespace: Apache.Ignite.Core.Client.Cache
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public interface ICacheClient<TK, TV>
    Type Parameters
    Name Description
    TK
    TV

    Properties

    Item[TK]

    Gets or sets a cache value with the specified key. Shortcut to Get(TK) and Put(TK, TV)

    Declaration
    TV this[TK key] { get; set; }
    Parameters
    Type Name Description
    TK key

    Key.

    Property Value
    Type Description
    TV

    Cache value with the specified key.

    Exceptions
    Type Condition
    System.Collections.Generic.KeyNotFoundException

    If the key is not present in the cache.

    Name

    Name of this cache (null for default cache).

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    Get(TK)

    Retrieves value mapped to the specified key from cache.

    Declaration
    TV Get(TK key)
    Parameters
    Type Name Description
    TK key

    Key.

    Returns
    Type Description
    TV

    Value.

    Exceptions
    Type Condition
    System.Collections.Generic.KeyNotFoundException

    If the key is not present in the cache.

    Put(TK, TV)

    Associates the specified value with the specified key in the cache.

    If the cache previously contained a mapping for the key, the old value is replaced by the specified value.

    Declaration
    void Put(TK key, TV val)
    Parameters
    Type Name Description
    TK key

    Key with which the specified value is to be associated.

    TV val

    Value to be associated with the specified key.

    Query(ScanQuery<TK, TV>)

    Executes a Scan query.

    Declaration
    IQueryCursor<ICacheEntry<TK, TV>> Query(ScanQuery<TK, TV> scanQuery)
    Parameters
    Type Name Description
    ScanQuery<TK, TV> scanQuery

    Scan query.

    Returns
    Type Description
    IQueryCursor<ICacheEntry<TK, TV>>

    Query cursor.

    Back to top © 2015 - 2017 The Apache Software Foundation