blob: bd8a445fce2c1cae7f0c335533f5a0ab7534fc49 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="canonical" href="https://ignite.apache.org/releases/1.9.0/dotnetdoc/interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>Apache Ignite.NET: Apache.Ignite.Core.Cache.Store.ICacheStore Interface Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="ignite_logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Apache Ignite.NET
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Apache.Ignite.Core.Cache.Store.ICacheStore Interface Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>API for cache persistent storage for read-through and write-through behavior.
<a href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Apache.Ignite.Core.Cache.Store.ICacheStore:</div>
<div class="dyncontent">
<div class="center">
<img src="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.png" usemap="#Apache.Ignite.Core.Cache.Store.ICacheStore_map" alt=""/>
<map id="Apache.Ignite.Core.Cache.Store.ICacheStore_map" name="Apache.Ignite.Core.Cache.Store.ICacheStore_map">
<area href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html" title="Cache storage adapter with parallel loading in LoadAll method. " alt="Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter" shape="rect" coords="0,56,384,80"/>
<area href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html" title="Cache storage convenience adapter. It provides default implementation for bulk operations, such as LoadAll, PutAll and RemoveAll by sequentially calling corresponding Load, Put and Remove operations. Use this adapter whenever such behaviour is acceptable. However in many cases it maybe more preferable to take advantage of database batch update functionality, and therefore default adapter implementation may not be the best option. Note that LoadCache method has empty implementation because it is essentially up to the user to invoke it with specific arguments. " alt="Apache.Ignite.Core.Cache.Store.CacheStoreAdapter" shape="rect" coords="394,56,778,80"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac6ad5b30b3bbc7f7dd26f4c5d3a88466"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#ac6ad5b30b3bbc7f7dd26f4c5d3a88466">LoadCache</a> (Action&lt; object, object &gt; act, params object[] args)</td></tr>
<tr class="memdesc:ac6ad5b30b3bbc7f7dd26f4c5d3a88466"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads all values from underlying persistent storage. Note that keys are not passed, so it is up to implementation to figure out what to load. This method is called whenever <a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_i_cache.html#a7b22f19d0a12cf6dedec057a66e94bf7" title="Delegates to ICacheStore.LoadCache method to load state from the underlying persistent storage...">ICache&lt;K,V&gt;.LocalLoadCache</a> method is invoked which is usually to preload the cache from persistent storage. This method is optional, and cache implementation does not depend on this method to do anything. For every loaded value method provided action should be called. The action will then make sure that the loaded value is stored in cache. <a href="#ac6ad5b30b3bbc7f7dd26f4c5d3a88466">More...</a><br /></td></tr>
<tr class="separator:ac6ad5b30b3bbc7f7dd26f4c5d3a88466"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72556b9d045402a991e0b58a0a3e82d8"><td class="memItemLeft" align="right" valign="top">object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#a72556b9d045402a991e0b58a0a3e82d8">Load</a> (object key)</td></tr>
<tr class="memdesc:a72556b9d045402a991e0b58a0a3e82d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads an object. Application developers should implement this method to customize the loading of a value for a cache entry. This method is called by a cache when a requested entry is not in the cache. If the object can't be loaded <code>null</code> should be returned. <a href="#a72556b9d045402a991e0b58a0a3e82d8">More...</a><br /></td></tr>
<tr class="separator:a72556b9d045402a991e0b58a0a3e82d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f4573cc2f432286f21234bb06be39c6"><td class="memItemLeft" align="right" valign="top">IDictionary&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#a1f4573cc2f432286f21234bb06be39c6">LoadAll</a> (ICollection keys)</td></tr>
<tr class="memdesc:a1f4573cc2f432286f21234bb06be39c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads multiple objects. Application developers should implement this method to customize the loading of cache entries. This method is called when the requested object is not in the cache. If an object can't be loaded, it is not returned in the resulting map. <a href="#a1f4573cc2f432286f21234bb06be39c6">More...</a><br /></td></tr>
<tr class="separator:a1f4573cc2f432286f21234bb06be39c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2c4a08ce76bf7d078894e4fd886e1a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#af2c4a08ce76bf7d078894e4fd886e1a6">Write</a> (object key, object val)</td></tr>
<tr class="memdesc:af2c4a08ce76bf7d078894e4fd886e1a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the specified value under the specified key to the external resource. <a href="#af2c4a08ce76bf7d078894e4fd886e1a6">More...</a><br /></td></tr>
<tr class="separator:af2c4a08ce76bf7d078894e4fd886e1a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad842b4241f550e241dc6fb26b52cab07"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#ad842b4241f550e241dc6fb26b52cab07">WriteAll</a> (IDictionary entries)</td></tr>
<tr class="memdesc:ad842b4241f550e241dc6fb26b52cab07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the specified entries to the external resource. This method is intended to support both insert and update. <a href="#ad842b4241f550e241dc6fb26b52cab07">More...</a><br /></td></tr>
<tr class="separator:ad842b4241f550e241dc6fb26b52cab07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01726d0353289c7408a931ebf746bb62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#a01726d0353289c7408a931ebf746bb62">Delete</a> (object key)</td></tr>
<tr class="memdesc:a01726d0353289c7408a931ebf746bb62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete the cache entry from the external resource. <a href="#a01726d0353289c7408a931ebf746bb62">More...</a><br /></td></tr>
<tr class="separator:a01726d0353289c7408a931ebf746bb62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6e8f85a8def4998815ae290acd5e20f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#ad6e8f85a8def4998815ae290acd5e20f">DeleteAll</a> (ICollection keys)</td></tr>
<tr class="memdesc:ad6e8f85a8def4998815ae290acd5e20f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove data and keys from the external resource for the given collection of keys, if present. <a href="#ad6e8f85a8def4998815ae290acd5e20f">More...</a><br /></td></tr>
<tr class="separator:ad6e8f85a8def4998815ae290acd5e20f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e5aae261ba85fc8f65ec611ab90e1c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html#aa9e5aae261ba85fc8f65ec611ab90e1c">SessionEnd</a> (bool commit)</td></tr>
<tr class="memdesc:aa9e5aae261ba85fc8f65ec611ab90e1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells store to commit or rollback a transaction depending on the value of the <code>commit</code> parameter. <a href="#aa9e5aae261ba85fc8f65ec611ab90e1c">More...</a><br /></td></tr>
<tr class="separator:aa9e5aae261ba85fc8f65ec611ab90e1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Persistent store is configured in Ignite's Spring XML configuration file via <code>CacheConfiguration.setStore()</code> property. If you have an implementation of cache store in .NET, you should use special Java wrapper which accepts assembly name and class name of .NET store implementation (both properties are mandatory).</p>
<p>Optionally, you may specify "properies" property to set any property values on an instance of your store. </p>
<p>Here is an example: </p><div class="fragment"><div class="line">&lt;bean <span class="keyword">class</span>=<span class="stringliteral">&quot;org.apache.ignite.configuration.CacheConfiguration&quot;</span>&gt;</div>
<div class="line"> ...</div>
<div class="line"> &lt;<span class="keyword">property</span> name=<span class="stringliteral">&quot;cacheStoreFactory&quot;</span>&gt;</div>
<div class="line"> &lt;bean <span class="keyword">class</span>=<span class="stringliteral">&quot;org.apache.ignite.platform.dotnet.PlatformDotNetCacheStoreFactory&quot;</span>&gt;</div>
<div class="line"> &lt;<span class="keyword">property</span> name=<span class="stringliteral">&quot;assemblyName&quot;</span> value=<span class="stringliteral">&quot;MyAssembly&quot;</span>/&gt;</div>
<div class="line"> &lt;<span class="keyword">property</span> name=<span class="stringliteral">&quot;className&quot;</span> value=<span class="stringliteral">&quot;MyApp.MyCacheStore&quot;</span>/&gt;</div>
<div class="line"> &lt;<span class="keyword">property</span> name=<span class="stringliteral">&quot;properties&quot;</span>&gt;</div>
<div class="line"> &lt;map&gt;</div>
<div class="line"> &lt;entry key=<span class="stringliteral">&quot;IntProperty&quot;</span>&gt;</div>
<div class="line"> &lt;value type=<span class="stringliteral">&quot;java.lang.Integer&quot;</span>&gt;42&lt;/value&gt;</div>
<div class="line"> &lt;/entry&gt;</div>
<div class="line"> &lt;entry key=<span class="stringliteral">&quot;StringProperty&quot;</span> value=<span class="stringliteral">&quot;String value&quot;</span>/&gt;</div>
<div class="line"> &lt;/map&gt;</div>
<div class="line"> &lt;/<span class="keyword">property</span>&gt;</div>
<div class="line"> &lt;/bean&gt;</div>
<div class="line"> &lt;/<span class="keyword">property</span>&gt;</div>
<div class="line"> ...</div>
<div class="line">&lt;/bean&gt;</div>
</div><!-- fragment --> <p>Assemply name and class name are passed to <a href="http://msdn.microsoft.com/en-us/library/d133hta4.aspx" target="_blank"><b>System.Activator.CreateInstance(String, String)</b></a> method during node startup to create an instance of cache store. Refer to its documentation for details. </p>
<p>All transactional operations of this API are provided with ongoing ITransaction, if any. You can attach any metadata to transaction, e.g. to recognize if several operations belong to the same transaction or not. </p>
<p>Here is an example of how attach a ODBC connection as transaction metadata: </p><div class="fragment"><div class="line">OdbcConnection conn = tx.Meta(<span class="stringliteral">&quot;some.name&quot;</span>);</div>
<div class="line"></div>
<div class="line"><span class="keywordflow">if</span> (conn == null)</div>
<div class="line">{</div>
<div class="line"> conn = ...; <span class="comment">// Create or get connection.</span></div>
<div class="line"></div>
<div class="line"> <span class="comment">// Store connection in transaction metadata, so it can be accessed</span></div>
<div class="line"> <span class="comment">// for other operations on the same transaction.</span></div>
<div class="line"> tx.AddMeta(<span class="stringliteral">&quot;some.name&quot;</span>, conn);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a01726d0353289c7408a931ebf746bb62"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.Delete </td>
<td>(</td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Expiry of a cache entry is not a delete hence will not cause this method to be invoked. </p>
<p>This method is invoked even if no mapping for the key exists. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>The key that is used for the delete operation.</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#a5e2fbf7b8b96d924757f2a0261620978">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#aa1f9b5a9dee1643aa7242029f8e2fe55">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="ad6e8f85a8def4998815ae290acd5e20f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.DeleteAll </td>
<td>(</td>
<td class="paramtype">ICollection&#160;</td>
<td class="paramname"><em>keys</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The order that individual deletes occur is undefined. </p>
<p>If this operation fails (by throwing an exception) after a partial success, the writer must remove any successfully written entries from the entries collection so that the caching implementation knows what succeeded and can mutate the cache. </p>
<p>Expiry of a cache entry is not a delete hence will not cause this method to be invoked. </p>
<p>This method may include keys even if there is no mapping for that key, in which case the data represented by that key should be removed from the underlying resource. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">keys</td><td>a mutable collection of keys for entries to delete. Upon invocation, it contains the keys to delete for write-through. Upon return the collection must only contain the keys that were not successfully deleted.</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#ab9bb85f8a5cb1110087b11f64d28f447">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a5696a38c6570a5db114cfe25d144487e">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="a72556b9d045402a991e0b58a0a3e82d8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">object Apache.Ignite.Core.Cache.Store.ICacheStore.Load </td>
<td>(</td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>The key identifying the object being loaded.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value for the entry that is to be stored in the cache or <code>null</code> if the object can't be loaded</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a835f927c8a3310d2617f22a350f2c06a">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#a4baa0641eae199daf77bd5eb03d1de41">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="a1f4573cc2f432286f21234bb06be39c6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IDictionary Apache.Ignite.Core.Cache.Store.ICacheStore.LoadAll </td>
<td>(</td>
<td class="paramtype">ICollection&#160;</td>
<td class="paramname"><em>keys</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">keys</td><td>Keys identifying the values to be loaded.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A map of key, values to be stored in the cache.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#ab92f39fc55465bc83418d8ce80eda9fb">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a9a2b1cefcc66b2ba3dd717e256fef5f6">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="ac6ad5b30b3bbc7f7dd26f4c5d3a88466"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.LoadCache </td>
<td>(</td>
<td class="paramtype">Action&lt; object, object &gt;&#160;</td>
<td class="paramname"><em>act</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">params object[]&#160;</td>
<td class="paramname"><em>args</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">act</td><td>Action for loaded values.</td></tr>
<tr><td class="paramname">args</td><td>Optional arguemnts passed to <a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_i_cache.html#a7b22f19d0a12cf6dedec057a66e94bf7" title="Delegates to ICacheStore.LoadCache method to load state from the underlying persistent storage...">ICache&lt;K,V&gt;.LocalLoadCache</a> method.</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#ae6d48deda9b20ba37a1d9820f7dfb3ed">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#abe8eebf460e86c9c01eb124c7bbc3754">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="aa9e5aae261ba85fc8f65ec611ab90e1c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.SessionEnd </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>commit</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">commit</td><td><code>True</code> if transaction should commit, <code>false</code> for rollback.</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#a16bb45f71978aea39c17b0ae0015a648">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a808afa72cc28ca5b63364a64d6fb3b61">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="af2c4a08ce76bf7d078894e4fd886e1a6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.Write </td>
<td>(</td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>val</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This method is intended to support both key/value creation and value update. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>Key to write.</td></tr>
<tr><td class="paramname">val</td><td>Value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#a07852633bcd25141444266444a929e2b">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a3b9707a9e8266288d6c89de5561ba744">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
<a class="anchor" id="ad842b4241f550e241dc6fb26b52cab07"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Apache.Ignite.Core.Cache.Store.ICacheStore.WriteAll </td>
<td>(</td>
<td class="paramtype">IDictionary&#160;</td>
<td class="paramname"><em>entries</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The order that individual writes occur is undefined. </p>
<p>If this operation fails (by throwing an exception) after a partial success, the writer must remove any successfully written entries from the entries collection so that the caching implementation knows what succeeded and can mutate the cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">entries</td><td>a mutable collection to write. Upon invocation, it contains the entries to write for write-through. Upon return the collection must only contain entries that were not successfully written. (see partial success above).</td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">CacheStoreException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_parallel_load_store_adapter.html#a3df33dcb84c8d51f220ba65327cffd28">Apache.Ignite.Core.Cache.Store.CacheParallelLoadStoreAdapter</a>, and <a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_cache_store_adapter.html#a3611ef4bd72b7a10b261853387c55746">Apache.Ignite.Core.Cache.Store.CacheStoreAdapter</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespace_apache.html">Apache</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite.html">Ignite</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core.html">Core</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core_1_1_cache.html">Cache</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store.html">Store</a></li><li class="navelem"><a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cache_1_1_store_1_1_i_cache_store.html">ICacheStore</a></li>
<li class="footer">Generated on Thu Mar 2 2017 17:22:55 for Apache Ignite.NET by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
</ul>
</div>
</body>
</html>