Debian Codegraph @

docs/api_reference/C/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>DB_SEQUENCE-&gt;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 11.  The DB_SEQUENCE Handle" />
11 <link rel="prev" href="seqremove.html" title="DB_SEQUENCE-&gt;remove()" />
12 <link rel="next" href="seqset_flags.html" title="DB_SEQUENCE-&gt;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">DB_SEQUENCE-&gt;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 11. 
26 The DB_SEQUENCE 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>DB_SEQUENCE-&gt;set_cachesize()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_SEQUENCE-&gt;set_cachesize(DB_SEQUENCE *seq, 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">DB_SEQUENCE-&gt;set_cachesize()</code> method may not be called after the
50 <a class="xref" href="seqopen.html" title="DB_SEQUENCE-&gt;open()">DB_SEQUENCE-&gt;open()</a>
51 method is called.
52 </p>
53 <p>
54 The <code class="methodname">DB_SEQUENCE-&gt;set_cachesize()</code> <span>
55 <span>
56 method returns a non-zero error value on failure and 0 on success.
57 </span>
58
59 </span>
60 </p>
61 <div class="sect2" lang="en" xml:lang="en">
62 <div class="titlepage">
63 <div>
64 <div>
65 <h3 class="title"><a id="idp54640488"></a>Parameters</h3>
66 </div>
67 </div>
68 </div>
69 <div class="sect3" lang="en" xml:lang="en">
70 <div class="titlepage">
71 <div>
72 <div>
73 <h4 class="title"><a id="idp54646376"></a>size</h4>
74 </div>
75 </div>
76 </div>
77 <p>
78 The number of elements in the cache.
79 </p>
80 </div>
81 </div>
82 <div class="sect2" lang="en" xml:lang="en">
83 <div class="titlepage">
84 <div>
85 <div>
86 <h3 class="title"><a id="idp54654448"></a>Errors</h3>
87 </div>
88 </div>
89 </div>
90 <p>
91 The <code class="methodname">DB_SEQUENCE-&gt;set_cachesize()</code> <span>
92 <span>
93 method may fail and return one of the following non-zero errors:
94 </span>
95
96 </span>
97 </p>
98 <div class="sect3" lang="en" xml:lang="en">
99 <div class="titlepage">
100 <div>
101 <div>
102 <h4 class="title"><a id="idp54676904"></a>EINVAL</h4>
103 </div>
104 </div>
105 </div>
106 <p>
107 An invalid flag value or parameter was specified.
108 </p>
109 </div>
110 </div>
111 <div class="sect2" lang="en" xml:lang="en">
112 <div class="titlepage">
113 <div>
114 <div>
115 <h3 class="title"><a id="idp54639720"></a>Class</h3>
116 </div>
117 </div>
118 </div>
119 <p>
120 <a class="link" href="seq.html" title="Chapter 11.  The DB_SEQUENCE Handle">DB_SEQUENCE</a>
121 </p>
122 </div>
123 <div class="sect2" lang="en" xml:lang="en">
124 <div class="titlepage">
125 <div>
126 <div>
127 <h3 class="title"><a id="idp54647304"></a>See Also</h3>
128 </div>
129 </div>
130 </div>
131 <p>
132 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
133 </p>
134 </div>
135 </div>
136 <div class="navfooter">
137 <hr />
138 <table width="100%" summary="Navigation footer">
139 <tr>
140 <td width="40%" align="left"><a accesskey="p" href="seqremove.html">Prev</a> </td>
141 <td width="20%" align="center">
142 <a accesskey="u" href="seq.html">Up</a>
143 </td>
144 <td width="40%" align="right"> <a accesskey="n" href="seqset_flags.html">Next</a></td>
145 </tr>
146 <tr>
147 <td width="40%" align="left" valign="top">DB_SEQUENCE-&gt;remove() </td>
148 <td width="20%" align="center">
149 <a accesskey="h" href="index.html">Home</a>
150 </td>
151 <td width="40%" align="right" valign="top"> DB_SEQUENCE-&gt;set_flags()</td>
152 </tr>
153 </table>
154 </div>
155 </body>
156 </html>