Skip to content

Commit 2c57a0c

Browse files
committed
Updated docs from upstream
Triggered by ce9d830b5a01106ad3fadfa6c37e04b9ffdf4dc9
1 parent dbb8aa2 commit 2c57a0c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Actions are like shell commands: they take arguments and do something! Skytable
1515
* [MKSNAP](actions/MKSNAP.md)
1616
* [MSET](actions/MSET.md)
1717
* [MUPDATE](actions/MUPDATE.md)
18+
* [POP](actions/POP.md)
1819
* [SDEL](actions/SDEL.md)
1920
* [SET](actions/SET.md)
2021
* [SSET](actions/SSET.md)

docs/actions/POP.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
id: pop
3+
title: POP
4+
---
5+
:::note About
6+
**Time complexity**: O(n)
7+
**Arguments**: `POP <key1> <key2> ...`
8+
**Returns**: Returns an array with either the values or response codes as the elements
9+
:::
10+
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)

0 commit comments

Comments
 (0)