Open xiaosiwei opened 4 years ago
The retrun value of - 1 is usually the following two error cases,defined in MT4RedisPlugin.h
#define MT4_REDIS_ERR -1 /* Error */
#define MT4_REDIS_CMD_FAILED -1 /* Failed */
First, check that your PC is properly connected to the Redis server.
Here are the parameters for connecting to Redis server. defined in MT4RedisPlugin.cpp
#define REDIS_SERVER "127.0.0.1"
#define REDIS_PORT 6379
#define CONNECT_TIMEOUT 3000
Second, make sure your Redis command is not too long When writing data into Redis, writing long texts/binary data might cause buffer overflow, default size is set to 1024. defined in MT4RedisPlugin.cpp
#define COMMAND_BUFFER 1024
don't forget recompile your source code after modification.
ok.thx
请问一下,我编译好DLL,放到Libraries中,用您这边的例程返回全是 -1,这个应该怎么处理呢