[go: nahoru, domu]

Skip to content

isyscore/fpredis

Repository files navigation

Build Status

FPREDIS

FPREDIS is a FPC client library for the Redis database.

It's a wrapper for HIREDIS and provides the full feature.

Basic Usage

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.

OS Support

All Unix-bases OS are supported.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages