Redis

Read(1259) Label: rediscli,

1. The directory containing files of this external library is: installation directory\esProc\extlib\RedisCli. The Raqsoft core jar for this external library is scu-redis-cli-2.10.jar.

aopalliance-1.0.jar

commons-lang-2.1.jar

commons-logging-1.2.jar

commons-math3-3.6.1.jar

commons-pool2-2.10.0.jar

jedis-3.6.1.jar

log4j-1.2.17.jar

slf4j-api-1.7.5.jar

slf4j-log4j12-1.7.5.jar

spring-beans-5.2.0.RELEASE.jar

spring-context-5.2.0.RELEASE.jar

spring-core-5.2.0.RELEASE.jar

spring-data-commons-2.2.0.RELEASE.jar

spring-data-keyvalue-2.2.0.RELEASE.jar

spring-data-redis-2.2.0.RELEASE.jar

spring-expression-5.2.0.RELEASE.jar

spring-tx-5.2.0.RELEASE.jar

Note: The third-party jars are encapsulated in the compression package and users can choose appropriate ones for specific scenarios.

 

2. RedisCli requires a JRE version 1.8 or above. Users need to install a higher version if the esProc built-in JRE version does not meet the requirements, and then configure java_home in config.txt under installation directory \esProc\bin. Just skip this step if the JRE version is adequate.

 

3. Users can manually change the size of memory if the default size isn’t large enough for needs. Under Windows, make the change in config.txt when starting esProc through .exe file; and in .bat file when starting the application through the .bat file. Make the modification in .sh file under Linux.

To modify the config.txt file under Windows:

java_home=C:\ProgramFiles\Java\JDK1.8.0_181;esproc_port=48773;btx_port=41735;gtm_port=41737;jvm_args=-Xms256m -XX:PermSize=256M -XX:MaxPermSize=512M -Xmx9783m -Duser.language=zh

 

4. On the machine where esProc is installed, find the hosts file to add the IP address and hostname of the machine holding the Redis database. For example, if the IP address and hostname are 192.168.0.8 and masters respectively, here are the settings:

 

5. esProc provides a number of external library functions, including redis_open(), redis_command() and redis_close(), to access Redis. Look them up inHelp-Function referenceto find their uses.