Skip to content

Latest commit

 

History

History
107 lines (86 loc) · 1.35 KB

File metadata and controls

107 lines (86 loc) · 1.35 KB

Uniredis

Simple Redis Client for Unity

This client is not actively maintained and it's still work in progress, but you're free to contribute if you want 🙂

Example (using the SET command)

Uniredis.Set(this, "Hello", "World", (error, result) =>
{
    if (error == null)
    {
        Debug.Log(result);
    }
});

Featuring

  • Unity-like APIs
  • Tested codebase

Limitations

  • Only a database at a time is supported (for now)

Commands Supported

Strings

  • APPEND
  • BITCOUNT
  • SET
  • SETNX
  • SETRANGE
  • STRLEN
  • MSET
  • MSETNX
  • GET
  • GETRANGE
  • MGET
  • INCR
  • INCRBY
  • INCRBYFLOAT
  • DECR
  • DECRBY
  • DEL
  • EXPIRE
  • TTL

Sets

  • SADD
  • SCARD
  • SREM
  • SISMEMBER
  • SMEMBERS
  • SUNION
  • SINTER
  • SMOVE
  • SPOP

Sorted Sets

  • ZADD
  • ZCARD
  • ZCOUNT
  • ZINCRBY
  • ZRANGE
  • ZRANK
  • ZREM
  • ZREMRANGEBYRANK
  • ZREMRANGEBYSCORE
  • ZSCORE
  • ZRANGEBYSCORE

Hashes

  • HGET
  • HGETALL
  • HSET
  • HSETNX
  • HMSET
  • HINCRBY
  • HDEL
  • HEXISTS
  • HKEYS
  • HLEN
  • HSTRLEN
  • HVALS

HyperLogLog

  • PFADD
  • PFCOUNT
  • PFMERGE
  • PSUBSCRIBE
  • PUBSUB
  • PUBLISH
  • PUNSUBSCRIBE
  • SUBSCRIBE
  • UNSUBSCRIBE

Other

  • KEYS