GKVS designed to support startup initialization and remote config. For this purpose it uses scripting configuration based on Lua language.

It gives flexibility to setup endpoints and change confguration on the fly.

Example of Aerospike endpoint:

config = {

    hosts = {
      {
        host="192.168.56.101",
        port=3000
      }
    },
    user="",
    password=""
}

add_cluster("as1", "aerospike", config );

add_table("test", "as1", { namespace="test", ttl = 100 } );

add_view("TEST", {cluster = "as1", table = "test" });

Example of Redis endpoint:

add_cluster("redis1", "redis", { host = "127.0.0.1", port = 6379 } );

add_table("test", "redis1", { ttl = 100 } );

add_view("TEST", { cluster="redis1", table="test" } );

Only views are visible for the client. We always can send a script to redirect view to another table.


gkvs

gkvs