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 1283
                         </listitem>
1285 1284
                         <listitem><para>key : Key name of the hash table value to delete</para>
1286 1285
                         </listitem>
1287
-
1288 1286
                 </itemizedlist>
1289 1287
                 <para>
1290 1288
                 Example:
... ...
@@ -1317,7 +1315,6 @@ kamcmd htable.delete students course[0]
1317 1315
                         </listitem>
1318 1316
                         <listitem><para>Value : String value for the item</para>
1319 1317
                         </listitem>
1320
-
1321 1318
                 </itemizedlist>
1322 1319
                 <para>
1323 1320
                 Example:
... ...
@@ -1350,7 +1347,6 @@ kamcmd htable.sets test x[0] abc
1350 1347
                         </listitem>
1351 1348
                         <listitem><para>Value : Integer value for the item</para>
1352 1349
                         </listitem>
1353
-
1354 1350
                 </itemizedlist>
1355 1351
                 <para>
1356 1352
                 Example:
... ...
@@ -1373,13 +1369,12 @@ kamcmd htable.sets test x[0] 123
1373 1369
 		Lists all the values in a hash table
1374 1370
                 </para>
1375 1371
                 <para>
1376
-                Name: <emphasis>dhtable.dump</emphasis>
1372
+                Name: <emphasis>htable.dump</emphasis>
1377 1373
                 </para>
1378 1374
                 <para>Parameters:</para>
1379 1375
                 <itemizedlist>
1380 1376
                         <listitem><para>htable : Name of the hash table to dump</para>
1381 1377
                         </listitem>
1382
-
1383 1378
                 </itemizedlist>
1384 1379
                 <para>
1385 1380
                 Example:
... ...
@@ -1395,16 +1390,15 @@ kamcmd htable.dump ipban
1395 1390
                 <function moreinfo="none">htable.reload htable</function>
1396 1391
                 </title>
1397 1392
                 <para>
1398
-		Reload hash table from database.
1393
+                Reload hash table from database.
1399 1394
                 </para>
1400 1395
                 <para>
1401
-                Name: <emphasis>dhtable.reload</emphasis>
1396
+                Name: <emphasis>htable.reload</emphasis>
1402 1397
                 </para>
1403 1398
                 <para>Parameters:</para>
1404 1399
                 <itemizedlist>
1405 1400
                         <listitem><para>htable : Name of the hash table to reload</para>
1406 1401
                         </listitem>
1407
-
1408 1402
                 </itemizedlist>
1409 1403
                 <para>
1410 1404
                 Example:
... ...
@@ -1413,6 +1407,30 @@ kamcmd htable.dump ipban
1413 1407
 ...
1414 1408
 kamcmd htable.reload ipban
1415 1409
 ...
1410
+</programlisting>
1411
+	</section>
1412
+        <section id="htable.rpc.store">
1413
+                <title>
1414
+                <function moreinfo="none">htable.store htable</function>
1415
+                </title>
1416
+                <para>
1417
+                Store hash table to database.
1418
+                </para>
1419
+                <para>
1420
+                Name: <emphasis>htable.store</emphasis>
1421
+                </para>
1422
+                <para>Parameters:</para>
1423
+                <itemizedlist>
1424
+                        <listitem><para>htable : Name of the hash table to store</para>
1425
+                        </listitem>
1426
+                </itemizedlist>
1427
+                <para>
1428
+                Example:
1429
+                </para>
1430
+<programlisting  format="linespecific">
1431
+...
1432
+kamcmd htable.store ipban
1433
+...
1416 1434
 </programlisting>
1417 1435
 	</section>
1418 1436
 	<section id="htable.rpc.flush">
... ...
@@ -1452,7 +1470,6 @@ kamcmd htable.flush ipban
1452 1470
                 <itemizedlist>
1453 1471
                         <listitem><para>None</para>
1454 1472
                         </listitem>
1455
-
1456 1473
                 </itemizedlist>
1457 1474
                 <para>
1458 1475
                 Example:
... ...
@@ -1479,7 +1496,6 @@ kamcmd htable.listTables
1479 1496
                 <itemizedlist>
1480 1497
                         <listitem><para>None</para>
1481 1498
                         </listitem>
1482
-
1483 1499
                 </itemizedlist>
1484 1500
                 <para>
1485 1501
                 Example: