single node mode

This commit is contained in:
Cloud Wu
2014-05-22 22:44:20 +08:00
parent 88700c2c90
commit 37ea7a025c
8 changed files with 318 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ local cluster = require "cluster"
skynet.start(function()
skynet.newservice("simpledb")
skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar")
print(skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar"))
print(skynet.call("SIMPLEDB", "lua", "GET", "a"))
cluster.open(2528)
end)