Skip to content

novant-io/redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Client API for Fantom

Native Fantom API for Redis.

Usage:

r := RedisClient("localhost")

// get/set/del conveniences
r.set("foo", 5)
v := r.get("foo")  // 5
r.del("foo")

// invoke any cmd
r.invoke(["INCRBY", "foo", 12])
v = r.get("foo")   // 17

// support for pipelining
v = r.pipeline([
  ["SET",    "bar", 5],
  ["INCRBY", "bar", 3],
  ["GET",    "bar"],
])
echo(v[2])  // 8