MEX functions to interact with a Redis server from MATLAB.
Install HIREDIS.
- cd hiredis
- make & make install
(From matlab prompt)
- compile
- Connect to Redis
redisCtxPtr = redis_connect('127.0.0.1',6379);
- Execute Redis command
[status, replyType, results] = redis_exec(redisCtxPtr, 'SET myKey myValue');
- Disconnect from Redis
redis_disconnect(redisCtxPtr);