think-leancloud
store, cache and session by leancloud api.
Install
npm install think-leancloud
How to use
set config file
//src/common/config.js'use strict';/** * config */ //key: value leancloud: appid: 'your appid' appkey: 'your appkey' session: type: 'leancloud' ;
import and register adapters
;think;think;think;
Store
let Storage = think; let options = this; let store = options; await store; let c = await store; console; //{a:1,b:2}
Cache
let cc = await this; cc = await this; console; //{a:1}
Session
await this; let info = await this; console;
LICENSE
MIT