Skip to content

a redis control for redis ,support lazarus。

License

Notifications You must be signed in to change notification settings

mestars/fpredis-laz

 
 

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

a redis control for redis ,support lazarus。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 100.0%