Skip to content

Commit a5e0ea6

Browse files
author
pim.van.der.noll
committed
New version with string commands, fixed 5k publish test (timing issue), documentation
1 parent 3ccdea0 commit a5e0ea6

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ See https://github.com/appronto/RedisConnector/releases
187187
- [ ] **RENAMENX** *key newkey* Rename a key, only if the new key does not exist
188188
- [ ] **RESTORE** *key ttl serialized-value [REPLACE]* Create a key using the provided serialized value, previously obtained using DUMP.
189189
- [ ] **ROLE** Return the role of the instance in the context of replication
190-
- [ ] **RPOP** *key* Remove and get the last element in a list
190+
- [X] **RPOP** *key* Remove and get the last element in a list
191191
- [X] **RPOPLPUSH** *source destination* Remove the last element in a list, prepend it to another list and return it
192192
- [X] **RPUSH** *key value [value ...]* Append one or multiple values to a list
193193
- [ ] **RPUSHX** *key value* Append a value to a list, only if the list exists

RedisConnector.mpr

12 KB
Binary file not shown.

javasource/redisconnector/actions/GetLastValueFromListAndRemove.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
import com.mendix.webui.CustomJavaAction;
1414
import redisconnector.impl.RedisConnector;
1515

16+
/**
17+
* RPOP key
18+
* Removes and returns the last element of the list stored at key.
19+
*
20+
* Return value
21+
* Bulk string reply: the value of the last element, or nil when key does not exist.
22+
*/
1623
public class GetLastValueFromListAndRemove extends CustomJavaAction<String>
1724
{
1825
private String key;

0 commit comments

Comments
 (0)