Debian Codegraph @

docs/api_reference/CXX/seqset_cachesize.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DbSequence::set_cachesize()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10 <link rel="up" href="seq.html" title="Chapter 12.  The DbSequence Handle" />
11 <link rel="prev" href="seqremove.html" title="DbSequence::remove()" />
12 <link rel="next" href="seqset_flags.html" title="DbSequence::set_flags()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbSequence::set_cachesize()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqremove.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 The DbSequence Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqset_flags.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="seqset_cachesize"></a>DbSequence::set_cachesize()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSequence::set_cachesize(int32_t size); </pre>
45 <p>
46 Configure the number of elements cached by a sequence handle.
47 </p>
48 <p>
49 The <code class="methodname">DbSequence::set_cachesize()</code> method may not be called after the
50 <a class="xref" href="seqopen.html" title="DbSequence::open()">DbSequence::open()</a>
51 method is called.
52 </p>
53 <p>
54 The <code class="methodname">DbSequence::set_cachesize()</code> <span>
55
56 <span>
57 method either returns a non-zero error value or throws an
58 exception that encapsulates a non-zero error value on
59 failure, and returns 0 on success.
60 </span>
61 </span>
62 </p>
63 <div class="sect2" lang="en" xml:lang="en">
64 <div class="titlepage">
65 <div>
66 <div>
67 <h3 class="title"><a id="idp10144352"></a>Parameters</h3>
68 </div>
69 </div>
70 </div>
71 <div class="sect3" lang="en" xml:lang="en">
72 <div class="titlepage">
73 <div>
74 <div>
75 <h4 class="title"><a id="idp10158264"></a>size</h4>
76 </div>
77 </div>
78 </div>
79 <p>
80 The number of elements in the cache.
81 </p>
82 </div>
83 </div>
84 <div class="sect2" lang="en" xml:lang="en">
85 <div class="titlepage">
86 <div>
87 <div>
88 <h3 class="title"><a id="idp10158328"></a>Errors</h3>
89 </div>
90 </div>
91 </div>
92 <p>
93 The <code class="methodname">DbSequence::set_cachesize()</code> <span>
94
95 <span>
96 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
97 exception, encapsulating one of the following non-zero errors, or return one
98 of the following non-zero errors:
99 </span>
100 </span>
101 </p>
102 <div class="sect3" lang="en" xml:lang="en">
103 <div class="titlepage">
104 <div>
105 <div>
106 <h4 class="title"><a id="idp10154536"></a>EINVAL</h4>
107 </div>
108 </div>
109 </div>
110 <p>
111 An invalid flag value or parameter was specified.
112 </p>
113 </div>
114 </div>
115 <div class="sect2" lang="en" xml:lang="en">
116 <div class="titlepage">
117 <div>
118 <div>
119 <h3 class="title"><a id="idp10168344"></a>Class</h3>
120 </div>
121 </div>
122 </div>
123 <p>
124 <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a>
125 </p>
126 </div>
127 <div class="sect2" lang="en" xml:lang="en">
128 <div class="titlepage">
129 <div>
130 <div>
131 <h3 class="title"><a id="idp10129376"></a>See Also</h3>
132 </div>
133 </div>
134 </div>
135 <p>
136 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
137 </p>
138 </div>
139 </div>
140 <div class="navfooter">
141 <hr />
142 <table width="100%" summary="Navigation footer">
143 <tr>
144 <td width="40%" align="left"><a accesskey="p" href="seqremove.html">Prev</a> </td>
145 <td width="20%" align="center">
146 <a accesskey="u" href="seq.html">Up</a>
147 </td>
148 <td width="40%" align="right"> <a accesskey="n" href="seqset_flags.html">Next</a></td>
149 </tr>
150 <tr>
151 <td width="40%" align="left" valign="top">DbSequence::remove() </td>
152 <td width="20%" align="center">
153 <a accesskey="h" href="index.html">Home</a>
154 </td>
155 <td width="40%" align="right" valign="top"> DbSequence::set_flags()</td>
156 </tr>
157 </table>
158 </div>
159 </body>
160 </html>