Browse code

htable: docs for rpc command htable.setex

Daniel-Constantin Mierla authored on 21/01/2022 07:49:51
Showing 1 changed files
... ...
@@ -1475,6 +1475,36 @@ kamcmd htable.seti test x 123
1475 1475
 # Set first entry in array key x $sht(test=>x[0]) as integer
1476 1476
 kamcmd htable.seti test x[0] 123
1477 1477
 ...
1478
+</programlisting>
1479
+	</section>
1480
+	</section>
1481
+       <section id="htable.rpc.setex">
1482
+                <title>
1483
+                <function moreinfo="none">htable.setex htable key expire</function>
1484
+                </title>
1485
+                <para>
1486
+					Set the expire for an item in hash table.
1487
+                </para>
1488
+                <para>
1489
+                Name: <emphasis>htable.setex</emphasis>
1490
+                </para>
1491
+                <para>Parameters:</para>
1492
+                <itemizedlist>
1493
+                        <listitem><para>htable : name of the hash table</para>
1494
+                        </listitem>
1495
+                        <listitem><para>key : key name in the hash table</para>
1496
+                        </listitem>
1497
+                        <listitem><para>expire : integer value for the expire (seconds)</para>
1498
+                        </listitem>
1499
+                </itemizedlist>
1500
+                <para>
1501
+                Example:
1502
+                </para>
1503
+<programlisting  format="linespecific">
1504
+...
1505
+# set  expire for $sht(test=>x) to 120 secs
1506
+kamctl rpc htable.seti test x 120
1507
+...
1478 1508
 </programlisting>
1479 1509
 	</section>
1480 1510
         <section id="htable.rpc.dump">