Browse code

htable: docs for rpc command htable.store

Daniel-Constantin Mierla authored on 25/03/2020 18:36:37
Showing 1 changed files
... ...
@@ -1253,7 +1253,6 @@ if(sht_match_str_value("ha", "eq", "alice")) {
1253 1253
                         </listitem>
1254 1254
                         <listitem><para>key : Key name of the hash table value to dump</para>
1255 1255
                         </listitem>
1256
-
1257 1256
                 </itemizedlist>
1258 1257
                 <para>
1259 1258
                 Example:
... ...
@@ -1284,7 +1283,6 @@ kamcmd htable.get students course[0]
1284 1284
                         </listitem>
1285 1285
                         <listitem><para>key : Key name of the hash table value to delete</para>
1286 1286
                         </listitem>
1287
-
1288 1287
                 </itemizedlist>
1289 1288
                 <para>
1290 1289
                 Example:
... ...
@@ -1317,7 +1315,6 @@ kamcmd htable.delete students course[0]
1317 1317
                         </listitem>
1318 1318
                         <listitem><para>Value : String value for the item</para>
1319 1319
                         </listitem>
1320
-
1321 1320
                 </itemizedlist>
1322 1321
                 <para>
1323 1322
                 Example:
... ...
@@ -1350,7 +1347,6 @@ kamcmd htable.sets test x[0] abc
1350 1350
                         </listitem>
1351 1351
                         <listitem><para>Value : Integer value for the item</para>
1352 1352
                         </listitem>
1353
-
1354 1353
                 </itemizedlist>
1355 1354
                 <para>
1356 1355
                 Example:
... ...
@@ -1373,13 +1369,12 @@ kamcmd htable.sets test x[0] 123
1373 1373
 		Lists all the values in a hash table
1374 1374
                 </para>
1375 1375
                 <para>
1376
-                Name: <emphasis>dhtable.dump</emphasis>
1376
+                Name: <emphasis>htable.dump</emphasis>
1377 1377
                 </para>
1378 1378
                 <para>Parameters:</para>
1379 1379
                 <itemizedlist>
1380 1380
                         <listitem><para>htable : Name of the hash table to dump</para>
1381 1381
                         </listitem>
1382
-
1383 1382
                 </itemizedlist>
1384 1383
                 <para>
1385 1384
                 Example:
... ...
@@ -1395,16 +1390,15 @@ kamcmd htable.dump ipban
1395 1395
                 <function moreinfo="none">htable.reload htable</function>
1396 1396
                 </title>
1397 1397
                 <para>
1398
-		Reload hash table from database.
1398
+                Reload hash table from database.
1399 1399
                 </para>
1400 1400
                 <para>
1401
-                Name: <emphasis>dhtable.reload</emphasis>
1401
+                Name: <emphasis>htable.reload</emphasis>
1402 1402
                 </para>
1403 1403
                 <para>Parameters:</para>
1404 1404
                 <itemizedlist>
1405 1405
                         <listitem><para>htable : Name of the hash table to reload</para>
1406 1406
                         </listitem>
1407
-
1408 1407
                 </itemizedlist>
1409 1408
                 <para>
1410 1409
                 Example:
... ...
@@ -1415,6 +1409,30 @@ kamcmd htable.reload ipban
1415 1415
 ...
1416 1416
 </programlisting>
1417 1417
 	</section>
1418
+        <section id="htable.rpc.store">
1419
+                <title>
1420
+                <function moreinfo="none">htable.store htable</function>
1421
+                </title>
1422
+                <para>
1423
+                Store hash table to database.
1424
+                </para>
1425
+                <para>
1426
+                Name: <emphasis>htable.store</emphasis>
1427
+                </para>
1428
+                <para>Parameters:</para>
1429
+                <itemizedlist>
1430
+                        <listitem><para>htable : Name of the hash table to store</para>
1431
+                        </listitem>
1432
+                </itemizedlist>
1433
+                <para>
1434
+                Example:
1435
+                </para>
1436
+<programlisting  format="linespecific">
1437
+...
1438
+kamcmd htable.store ipban
1439
+...
1440
+</programlisting>
1441
+	</section>
1418 1442
 	<section id="htable.rpc.flush">
1419 1443
           <title>
1420 1444
                 <function moreinfo="none">htable.flush htable</function>
... ...
@@ -1452,7 +1470,6 @@ kamcmd htable.flush ipban
1452 1452
                 <itemizedlist>
1453 1453
                         <listitem><para>None</para>
1454 1454
                         </listitem>
1455
-
1456 1455
                 </itemizedlist>
1457 1456
                 <para>
1458 1457
                 Example:
... ...
@@ -1479,7 +1496,6 @@ kamcmd htable.listTables
1479 1479
                 <itemizedlist>
1480 1480
                         <listitem><para>None</para>
1481 1481
                         </listitem>
1482
-
1483 1482
                 </itemizedlist>
1484 1483
                 <para>
1485 1484
                 Example: