Skip to content

Commit 3ccdea0

Browse files
authored
Merge pull request #2 from Lodehendriks/master
Implemented new commands SET, GET, and DECR
2 parents 5c9e651 + 99b51ca commit 3ccdea0

131 files changed

Lines changed: 7230 additions & 6996 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ See https://github.com/appronto/RedisConnector/releases
104104
- [ ] **DBSIZE** Return the number of keys in the selected database
105105
- [ ] **DEBUG OBJECT** *key* Get debugging information about a key
106106
- [ ] **DEBUG SEGFAULT** Make the server crash
107-
- [ ] **DECR** *key* Decrement the integer value of a key by one
107+
- [X] **DECR** *key* Decrement the integer value of a key by one
108108
- [ ] **DECRBY** *key decrement* Decrement the integer value of a key by the given number
109109
- [X] **DEL** *key [key ...]* Delete a key
110110
- [ ] **DISCARD** Discard all commands issued after MULTI
@@ -124,7 +124,7 @@ See https://github.com/appronto/RedisConnector/releases
124124
- [ ] **GEODIST** *key member1 member2 [unit]* Returns the distance between two members of a geospatial index
125125
- [X] **GEORADIUS** *key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]* Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point
126126
- [ ] **GEORADIUSBYMEMBER** *key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]* Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member
127-
- [ ] **GET** *key* Get the value of a key
127+
- [X] **GET** *key* Get the value of a key
128128
- [ ] **GETBIT** *key offset* Returns the bit value at offset in the string value stored at key
129129
- [ ] **GETRANGE** *key start end* Get a substring of the string stored at a key
130130
- [ ] **GETSET** *key value* Set the string value of a key and return its old value
@@ -202,7 +202,7 @@ See https://github.com/appronto/RedisConnector/releases
202202
- [ ] **SDIFF** * key [key ...]* Subtract multiple sets
203203
- [ ] **SDIFFSTORE destination** * key [key ...]* Subtract multiple sets and store the resulting set in a key
204204
- [ ] **SELECT** *index* Change the selected database for the current connection
205-
- [ ] **SET** *key value [EX seconds] [PX milliseconds] [NX|XX]* Set the string value of a key
205+
- [X] **SET** *key value [EX seconds] [PX milliseconds] [NX|XX]* Set the string value of a key
206206
- [ ] **SETBIT** *key offset value* Sets or clears the bit at offset in the string value stored at key
207207
- [ ] **SETEX** *key seconds value* Set the value and expiration of a key
208208
- [ ] **SETNX** *key value* Set the value of a key, only if the key does not exist
@@ -257,4 +257,4 @@ See https://github.com/appronto/RedisConnector/releases
257257
- [ ] **SCAN** *cursor [MATCH pattern] [COUNT count]* Incrementally iterate the keys space
258258
- [ ] **SSCAN** *key cursor [MATCH pattern] [COUNT count]* Incrementally iterate Set elements
259259
- [ ] **HSCAN** *key cursor [MATCH pattern] [COUNT count]* Incrementally iterate hash fields and associated values
260-
- [ ] **ZSCAN** *key cursor [MATCH pattern] [COUNT count]* Incrementally iterate sorted sets elements and associated scores
260+
- [ ] **ZSCAN** *key cursor [MATCH pattern] [COUNT count]* Incrementally iterate sorted sets elements and associated scores

RedisConnector.mpr

29 KB
Binary file not shown.
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
// This file was generated by Mendix Modeler.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9-
10-
package communitycommons.actions;
11-
12-
import communitycommons.StringUtils;
13-
import com.mendix.systemwideinterfaces.core.IContext;
14-
import com.mendix.webui.CustomJavaAction;
15-
16-
/**
17-
* Converts a base64 encoded string to the plain, original string
18-
*/
19-
public class Base64Decode extends CustomJavaAction<String>
20-
{
21-
private String encoded;
22-
23-
public Base64Decode(IContext context, String encoded)
24-
{
25-
super(context);
26-
this.encoded = encoded;
27-
}
28-
29-
@Override
30-
public String executeAction() throws Exception
31-
{
32-
// BEGIN USER CODE
33-
return StringUtils.base64Decode(encoded);
34-
// END USER CODE
35-
}
36-
37-
/**
38-
* Returns a string representation of this action
39-
*/
40-
@Override
41-
public String toString()
42-
{
43-
return "Base64Decode";
44-
}
45-
46-
// BEGIN EXTRA CODE
47-
// END EXTRA CODE
48-
}
1+
// This file was generated by Mendix Modeler.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9+
10+
package communitycommons.actions;
11+
12+
import communitycommons.StringUtils;
13+
import com.mendix.systemwideinterfaces.core.IContext;
14+
import com.mendix.webui.CustomJavaAction;
15+
16+
/**
17+
* Converts a base64 encoded string to the plain, original string
18+
*/
19+
public class Base64Decode extends CustomJavaAction<String>
20+
{
21+
private String encoded;
22+
23+
public Base64Decode(IContext context, String encoded)
24+
{
25+
super(context);
26+
this.encoded = encoded;
27+
}
28+
29+
@Override
30+
public String executeAction() throws Exception
31+
{
32+
// BEGIN USER CODE
33+
return StringUtils.base64Decode(encoded);
34+
// END USER CODE
35+
}
36+
37+
/**
38+
* Returns a string representation of this action
39+
*/
40+
@Override
41+
public String toString()
42+
{
43+
return "Base64Decode";
44+
}
45+
46+
// BEGIN EXTRA CODE
47+
// END EXTRA CODE
48+
}
Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
// This file was generated by Mendix Modeler.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9-
10-
package communitycommons.actions;
11-
12-
import com.mendix.systemwideinterfaces.core.IMendixObject;
13-
import communitycommons.StringUtils;
14-
import com.mendix.systemwideinterfaces.core.IContext;
15-
import com.mendix.webui.CustomJavaAction;
16-
17-
/**
18-
* Stores an base 64 encoded string plain in the provided target file document
19-
*
20-
* Note that targetFile will be committed.
21-
*/
22-
public class Base64DecodeToFile extends CustomJavaAction<Boolean>
23-
{
24-
private String encoded;
25-
private IMendixObject __targetFile;
26-
private system.proxies.FileDocument targetFile;
27-
28-
public Base64DecodeToFile(IContext context, String encoded, IMendixObject targetFile)
29-
{
30-
super(context);
31-
this.encoded = encoded;
32-
this.__targetFile = targetFile;
33-
}
34-
35-
@Override
36-
public Boolean executeAction() throws Exception
37-
{
38-
this.targetFile = __targetFile == null ? null : system.proxies.FileDocument.initialize(getContext(), __targetFile);
39-
40-
// BEGIN USER CODE
41-
StringUtils.base64DecodeToFile(getContext(), encoded, targetFile);
42-
return true;
43-
// END USER CODE
44-
}
45-
46-
/**
47-
* Returns a string representation of this action
48-
*/
49-
@Override
50-
public String toString()
51-
{
52-
return "Base64DecodeToFile";
53-
}
54-
55-
// BEGIN EXTRA CODE
56-
// END EXTRA CODE
57-
}
1+
// This file was generated by Mendix Modeler.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9+
10+
package communitycommons.actions;
11+
12+
import com.mendix.systemwideinterfaces.core.IMendixObject;
13+
import communitycommons.StringUtils;
14+
import com.mendix.systemwideinterfaces.core.IContext;
15+
import com.mendix.webui.CustomJavaAction;
16+
17+
/**
18+
* Stores an base 64 encoded string plain in the provided target file document
19+
*
20+
* Note that targetFile will be committed.
21+
*/
22+
public class Base64DecodeToFile extends CustomJavaAction<Boolean>
23+
{
24+
private String encoded;
25+
private IMendixObject __targetFile;
26+
private system.proxies.FileDocument targetFile;
27+
28+
public Base64DecodeToFile(IContext context, String encoded, IMendixObject targetFile)
29+
{
30+
super(context);
31+
this.encoded = encoded;
32+
this.__targetFile = targetFile;
33+
}
34+
35+
@Override
36+
public Boolean executeAction() throws Exception
37+
{
38+
this.targetFile = __targetFile == null ? null : system.proxies.FileDocument.initialize(getContext(), __targetFile);
39+
40+
// BEGIN USER CODE
41+
StringUtils.base64DecodeToFile(getContext(), encoded, targetFile);
42+
return true;
43+
// END USER CODE
44+
}
45+
46+
/**
47+
* Returns a string representation of this action
48+
*/
49+
@Override
50+
public String toString()
51+
{
52+
return "Base64DecodeToFile";
53+
}
54+
55+
// BEGIN EXTRA CODE
56+
// END EXTRA CODE
57+
}
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
// This file was generated by Mendix Modeler.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9-
10-
package communitycommons.actions;
11-
12-
import communitycommons.StringUtils;
13-
import com.mendix.systemwideinterfaces.core.IContext;
14-
import com.mendix.webui.CustomJavaAction;
15-
16-
/**
17-
* Converts a plain string to a base64 encoded string
18-
*/
19-
public class Base64Encode extends CustomJavaAction<String>
20-
{
21-
private String value;
22-
23-
public Base64Encode(IContext context, String value)
24-
{
25-
super(context);
26-
this.value = value;
27-
}
28-
29-
@Override
30-
public String executeAction() throws Exception
31-
{
32-
// BEGIN USER CODE
33-
return StringUtils.base64Encode(value);
34-
// END USER CODE
35-
}
36-
37-
/**
38-
* Returns a string representation of this action
39-
*/
40-
@Override
41-
public String toString()
42-
{
43-
return "Base64Encode";
44-
}
45-
46-
// BEGIN EXTRA CODE
47-
// END EXTRA CODE
48-
}
1+
// This file was generated by Mendix Modeler.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9+
10+
package communitycommons.actions;
11+
12+
import communitycommons.StringUtils;
13+
import com.mendix.systemwideinterfaces.core.IContext;
14+
import com.mendix.webui.CustomJavaAction;
15+
16+
/**
17+
* Converts a plain string to a base64 encoded string
18+
*/
19+
public class Base64Encode extends CustomJavaAction<String>
20+
{
21+
private String value;
22+
23+
public Base64Encode(IContext context, String value)
24+
{
25+
super(context);
26+
this.value = value;
27+
}
28+
29+
@Override
30+
public String executeAction() throws Exception
31+
{
32+
// BEGIN USER CODE
33+
return StringUtils.base64Encode(value);
34+
// END USER CODE
35+
}
36+
37+
/**
38+
* Returns a string representation of this action
39+
*/
40+
@Override
41+
public String toString()
42+
{
43+
return "Base64Encode";
44+
}
45+
46+
// BEGIN EXTRA CODE
47+
// END EXTRA CODE
48+
}

0 commit comments

Comments
 (0)