You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by dm...@apache.org on 2021/01/21 21:20:07 UTC
[ignite-website] branch master updated: Improved the code snippet
This is an automated email from the ASF dual-hosted git repository.
dmagda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git
The following commit(s) were added to refs/heads/master by this push:
new d6a051f Improved the code snippet
d6a051f is described below
commit d6a051fd5ad0f498f68d912544cd3734f406e1a8
Author: Denis Magda <dm...@gridgain.com>
AuthorDate: Thu Jan 21 13:19:51 2021 -0800
Improved the code snippet
---
index.html | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/index.html b/index.html
index d0a7a92..e521609 100644
--- a/index.html
+++ b/index.html
@@ -413,12 +413,15 @@ under the License.
<div class="tab-pane " id="storage-java">
<pre class="language-java">
<code>
- IgniteConfiguration cfg = new IgniteConfiguration();
+ IgniteConfiguration cfg = new IgniteConfiguration();
- DataStorageConfiguration storageCfg = new DataStorageConfiguration();
+ DataStorageConfiguration storageCfg = new DataStorageConfiguration();
- // Enable Ignite Persistence
- storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
+ // Enable Ignite Persistence
+ storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
+
+ // Using the new storage configuration
+ cfg.setDataStorageConfiguration(storageCfg);
</code>
</pre>
</div>