From a322159088aa294c41db387adaf0afb6ee9ce784 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Mon, 14 Jun 2021 19:38:42 +0530 Subject: [PATCH] Add actiondoc for `pop` action --- actions.jsonc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/actions.jsonc b/actions.jsonc index ed4ed26a..a3d8e020 100644 --- a/actions.jsonc +++ b/actions.jsonc @@ -147,5 +147,12 @@ "args": "LSKEYS ", "desc": "Returns a flat string array of keys present in the database. If no is given, then a maximum of 10 keys are returned. If a limit is specified, then a maximum of keys are returned", "return": "Returns a maximum of 10 keys if no limit is specified or returns a maximum number of keys for the given limit. The order of keys returned is meaningless." + }, + { + "name": "POP", + "complexity": "O(n)", + "args": "POP ...", + "desc": "Deletes and returns the values of the provided keys. If the database is poisoned, this will return a server error. An exceptional scenario can arise when the database fails in-between removing all the keys. In that case, you get the server error response code instead of the keys. If the server recovers inbetween, then the appropriate values (if any) will be returned. In all other cases a NIL error is returned (code 1)", + "return": "Returns an array with either the values or response codes as the elements" } ]