Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 824 Bytes

README.md

File metadata and controls

54 lines (44 loc) · 824 Bytes

haxe-redis

Haxe redis implementation

example

import redis.Redis;

class Sample {
  /**
   * Main entry point
   */
  static function main()
  {
    var redis:Redis = new Redis("localhost", 6739, "", 0);
    // set some keys
    redis.set("key1", "value1");
    redis.set("key2", "value2");
    // fetch set keys
    trace(redis.get("key2")); // outputs: "value2"
    trace(redis.get("key1")); // outputs: "value1"
  }
}

supported commands

Currently supported commands

  • DEL
  • GET
  • HDEL
  • HEXISTS
  • HEXPIRE
  • HEXPIREAT
  • HEXPIRETIME
  • HGET
  • HGETALL
  • HKEYS
  • HLEN
  • HSET
  • PING
  • SELECT
  • SET / SETEX
  • STRLEN

installation

haxe-redis is currently not published to haxelib, so to install you've to use git install.

haxelib git haxe-redis https://github.com/Dreaded-Gnu/haxe-redis