lisa.sync.aokadapter

1.0.1 • Public • Published

LiSA.sync.aokAdapter.js

LiSA sync aok ilink implement

just do it

  1. start aok

  2. npm i

npm i lisa.sync
npm i LiSA.sync.aokAdapter
  1. 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()
  1. config
cc system LiSA.sync.aok

cc get
cc set url "http://localhost:11540/"

Readme

Keywords

Package Sidebar

Install

npm i lisa.sync.aokadapter

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.88 kB

Total Files

9

Last publish

Collaborators

  • apporoad