MultiServer: Data Storage Additions #1411

adds 3 new operations to datastorage that allows adding and removing of elements from list and dicts.
This commit is contained in:
KonoTyran
2023-01-24 21:14:46 -08:00
committed by GitHub
parent 28576f2b0d
commit 5393563700
2 changed files with 31 additions and 1 deletions

View File

@@ -411,6 +411,9 @@ The following operations can be applied to a datastorage key
| xor | Applies a bitwise Exclusive OR to the current value of the key with `value`. |
| left_shift | Applies a bitwise left-shift to the current value of the key by `value`. |
| right_shift | Applies a bitwise right-shift to the current value of the key by `value`. |
| remove | List only: removes the first instance of `value` found in the list. |
| pop | List or Dict: for lists it will remove the index of the `value` given. for dicts it removes the element with the specified key of `value`. |
| update | Dict only: Updates the dictionary with the specified elements given in `value` creating new keys, or updating old ones if they previously existed. |
### SetNotify
Used to register your current session for receiving all [SetReply](#SetReply) packages of certain keys to allow your client to keep track of changes.