Add new sharetable

This commit is contained in:
Cloud Wu
2019-04-17 21:30:47 +08:00
committed by 云风
parent 2ceb642b5d
commit 76b166f04a
8 changed files with 392 additions and 3 deletions

10
test/testsharetable.lua Normal file
View File

@@ -0,0 +1,10 @@
local skynet = require "skynet"
local sharetable = require "skynet.sharetable"
skynet.start(function()
sharetable.load("test", "return { x=1,y={ 'hello world' },['hello world'] = true }")
local t = sharetable.query("test")
for k,v in pairs(t) do
print(k,v)
end
end)