FPREDIS is a FPC client library for the Redis database.
It's a wrapper for HIREDIS and provides the full feature.
var
api: TFPRedis;
key: String = 'mykey';
b: Boolean;
s: String;
begin
api := TFPRedis.Create('127.0.0.1', 6379, 'mypassword');
b := api.Connect();
WriteLn('Connected: ', b);
b := api.&Set(key, 'myvalue');
WriteLn('Set: ', b);
b := api.Exists(key);
WriteLn('Exists: ', b);
s := api.Get(key);
WriteLn('Get: ', s);
api.Free;
end.
All Unix-bases OS are supported.