Add `USET` to actions doc

next
Sayan Nandan 4 years ago
parent 09a15fd35c
commit 26a1c4f92d
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -117,7 +117,7 @@
"since": "0.4.3",
"complexity": "O(1)",
"args": "DBSIZE",
"desc": "Returns the number of key/value pairs stored in the database",
"desc": "Number of key/value pairs stored in the database",
"return": "Number of keys that exist in the database as an unsigned int"
},
{
@ -127,5 +127,13 @@
"args": "FLUSHDB",
"desc": "Removes all the key/value pairs stored in the database",
"return": "(Code: 0) if the operation succeeded"
},
{
"name": "USET",
"since": "0.4.4",
"complexity": "O(n)",
"args": "USET <key1> <value1> <key2> <value2> ...",
"desc": "SET all keys if they don't exist, or UPDATE them if they do exist",
"return": "Number of keys that were `USET`ed, as an integer"
}
]

@ -18,6 +18,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
// HACK(@ohsayan): `len` needs to be set to zero, but clippy doesn't like it,so we'll do this
#![allow(unused_assignments)]
use crate::coredb::CoreDB;
use crate::protocol::{responses, ActionGroup, Connection};

Loading…
Cancel
Save