1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram

  5. Delphifan Magazine
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Redis client for Delphi XE8, XE7, XE6 and XE5

Discussion in 'Delphi Components,Freeware, Open Source' started by AdminDF, Jul 8, 2015.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Redis client for Delphi XE8, XE7, XE6 and XE5 (should works also with older versions)

    This client is able to send all Redis commands and read the response using an internal parser.

    Some commands have a specialized dedicated method.

    This is the interface used to send command to the Redis server. Each method is a Redis command. Hi level methods implementing some integration design pattern are planned (e.g. Push a JSONObject, Pop a Stream and so on).

      IRedisClient = interface
        ['{566C20FF-7D9F-4DAC-9B0E-A8AA7D29B0B4}']

        //single values
        function &SET(const AKey, AValue: string): boolean;
        function GET(const AKey: string; out AValue: string): boolean;
        function DEL(const AKeys: array of string): Integer;
        function MSET(const AKeysValues: array of string): boolean;
        function KEYS(const AKeyPattern: string): TArray<string>;

        // lists
        function RPUSH(const AListKey: string; AValues: array of string): Integer;
        function RPUSHX(const AListKey: string; AValues: array of string): Integer;
        function RPOP(const AListKey: string; var Value: string): boolean;
        function LPUSH(const AListKey: string; AValues: array of string): Integer;
        function LPUSHX(const AListKey: string; AValues: array of string): Integer;
        function LPOP(const AListKey: string; out Value: string): boolean;
        function LLEN(const AListKey: string): Integer;
        function LRANGE(const AListKey: string; IndexStart, IndexStop: Integer): TArray<string>;
        function RPOPLPUSH(const ARightListKey, ALeftListKey: string; var APoppedAndPushedElement: string): boolean;
        function BLPOP(const AKeys: array of string; const ATimeout: Int32; out Value: TArray<string>): boolean;
        function BRPOP(const AKeys: array of string; const ATimeout: Int32; out Value: TArray<string>): boolean;
        function LREM(const AListKey: string; const ACount: Integer; const AValue: string): Integer;

        // system
        function FLUSHDB: boolean;

        // raw execute
        function ExecuteWithStringArrayResult(const RedisCommand: string): TArray<string>;
        function ExecuteWithIntegerResult(const RedisCommand: string): TArray<string>;

        // non sys
        function Tokenize(const ARedisCommand: string): TArray<string>;
        procedure Disconnect;
      end;

    Hidden Content:
    **Hidden Content: You must click 'Like' before you can see the hidden data contained here.**
     
  2. ahmed_shawky
    Offline

    ahmed_shawky DF Member

    RE:

    thanks
     
  3. vcorp
    Online

    vcorp DF Junior

    RE:

    Thanks you.
     
  4. gangpan
    Offline

    gangpan DF Junior

    RE:

    thanks
     
  5. itaim
    Online

    itaim Guest

    thanks
     
  6. darksage
    Offline

    darksage DF Junior

    RE:

    thanks!!
     
  7. barm
    Online

    barm Guest

    RE:

    thank you
     
  8. mpghome
    Offline

    mpghome DF Senior

    RE:

    thanks
     
  9. leebyeongcheol
    Offline

    leebyeongcheol DF Member

    RE:

    thanks
     
  10. zgembo
    Offline

    zgembo DF Junior

    interesting stuff...
     
     

Share This Page