htable: docs for rpc command htable.store
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 25 Mar 2020 18:36:37 +0000 (19:36 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 25 Mar 2020 18:36:37 +0000 (19:36 +0100)
src/modules/htable/doc/htable_admin.xml

index 1739162..408fb13 100644 (file)
@@ -1253,7 +1253,6 @@ if(sht_match_str_value("ha", "eq", "alice")) {
                         </listitem>
                         <listitem><para>key : Key name of the hash table value to dump</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1284,7 +1283,6 @@ kamcmd htable.get students course[0]
                         </listitem>
                         <listitem><para>key : Key name of the hash table value to delete</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1317,7 +1315,6 @@ kamcmd htable.delete students course[0]
                         </listitem>
                         <listitem><para>Value : String value for the item</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1350,7 +1347,6 @@ kamcmd htable.sets test x[0] abc
                         </listitem>
                         <listitem><para>Value : Integer value for the item</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1373,13 +1369,12 @@ kamcmd htable.sets test x[0] 123
                Lists all the values in a hash table
                 </para>
                 <para>
-                Name: <emphasis>dhtable.dump</emphasis>
+                Name: <emphasis>htable.dump</emphasis>
                 </para>
                 <para>Parameters:</para>
                 <itemizedlist>
                         <listitem><para>htable : Name of the hash table to dump</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1395,16 +1390,15 @@ kamcmd htable.dump ipban
                 <function moreinfo="none">htable.reload htable</function>
                 </title>
                 <para>
-               Reload hash table from database.
+                Reload hash table from database.
                 </para>
                 <para>
-                Name: <emphasis>dhtable.reload</emphasis>
+                Name: <emphasis>htable.reload</emphasis>
                 </para>
                 <para>Parameters:</para>
                 <itemizedlist>
                         <listitem><para>htable : Name of the hash table to reload</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1415,6 +1409,30 @@ kamcmd htable.reload ipban
 ...
 </programlisting>
        </section>
+        <section id="htable.rpc.store">
+                <title>
+                <function moreinfo="none">htable.store htable</function>
+                </title>
+                <para>
+                Store hash table to database.
+                </para>
+                <para>
+                Name: <emphasis>htable.store</emphasis>
+                </para>
+                <para>Parameters:</para>
+                <itemizedlist>
+                        <listitem><para>htable : Name of the hash table to store</para>
+                        </listitem>
+                </itemizedlist>
+                <para>
+                Example:
+                </para>
+<programlisting  format="linespecific">
+...
+kamcmd htable.store ipban
+...
+</programlisting>
+       </section>
        <section id="htable.rpc.flush">
           <title>
                 <function moreinfo="none">htable.flush htable</function>
@@ -1452,7 +1470,6 @@ kamcmd htable.flush ipban
                 <itemizedlist>
                         <listitem><para>None</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example:
@@ -1479,7 +1496,6 @@ kamcmd htable.listTables
                 <itemizedlist>
                         <listitem><para>None</para>
                         </listitem>
-
                 </itemizedlist>
                 <para>
                 Example: