lisa.sync.aokadapter
v1.0.1
Published
aok sync
Downloads
1
Readme
LiSA.sync.aokAdapter.js
LiSA sync aok ilink implement
just do it
npm i
npm i lisa.sync
npm i LiSA.sync.aokAdapter
- vim test.js
var LiSASync = require('lisa.sync')
var data = LiSASync('data',{internal : 2000})
data.get().then(d=>{
console.log(d)
})
LiSA.set({ name : "LiSA1" , gender : "girl"})
console.log(LiSA.getSync())
LiSA.sync(()=>{
return {
name : "LiSA2"
}
})
//you can call sync
LiSA.sync(data=>{
data.oneNode = { name : "testNode"}
})
LiSA.get().then(d=>{
console.log(d)
})
//stop sync
LiSA.stop()
cc system LiSA.sync.aok
cc get
cc set url "http://localhost:11540/"