1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Store 'memory'</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Redland RDF Library Manual">
<link rel="up" href="redland-storage-modules.html" title="Storage Modules">
<link rel="prev" href="redland-storage-module-hashes.html" title="Store 'hashes'">
<link rel="next" href="redland-storage-module-file.html" title="Store 'file'">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="redland-storage-module-hashes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="redland-storage-modules.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Redland RDF Library Manual</th>
<td><a accesskey="n" href="redland-storage-module-file.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="redland-storage-module-memory"></a>Store 'memory'</h2></div></div></div>
<p>This module is always present (cannot be removed) and provides a
simple and fast in-memory store with no persistence. It is
the default store if no store name is given to the storage
constructors.</p>
<p>The memory store is not suitable for large in-memory models since
it does not do any indexing. For that, use the
<a class="xref" href="redland-storage-module-hashes.html" title="Store 'hashes'">the section called “Store 'hashes'”</a> with
<code class="literal">hash-type</code> of <code class="literal">memory</code>.</p>
<p>The module provides optional contexts support enabled when
boolean storage option <code class="literal">contexts</code> is set.</p>
<p>Examples:</p>
<pre class="programlisting">
/* Explicitly named memory storage */
storage=librdf_new_storage(world, "memory", NULL, NULL);
/* Default storage type, which is memory */
storage=librdf_new_storage(world, NULL, NULL, NULL);
/* In-memory store with contexts */
storage=librdf_new_storage(world, NULL, NULL, "contexts='yes'");
</pre>
<p>Summary:</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>In-memory</p></li>
<li class="listitem"><p>Fast</p></li>
<li class="listitem"><p>Suitable for small models</p></li>
<li class="listitem"><p>No indexing</p></li>
<li class="listitem"><p>No persistence</p></li>
<li class="listitem"><p>Optional contexts (with option <code class="literal">contexts</code> set)</p></li>
</ul></div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|