Skip to content

MEX functions to interact with a Redis server from MATLAB using HIREDIS

Notifications You must be signed in to change notification settings

svdev/redis-matlab-mex

Repository files navigation

redis-mex

MEX functions to interact with a Redis server from MATLAB.

Installation

Install HIREDIS.

  • cd hiredis
  • make & make install

Compile Mex functions

(From matlab prompt)

  • compile

Usage

  1. Connect to Redis

redisCtxPtr = redis_connect('127.0.0.1',6379);

  1. Execute Redis command

[status, replyType, results] = redis_exec(redisCtxPtr, 'SET myKey myValue');

  1. Disconnect from Redis

redis_disconnect(redisCtxPtr);

About

MEX functions to interact with a Redis server from MATLAB using HIREDIS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published