/** * 作者:likeagle@163.com, * 功能: **/ "use strict"; const r = {"host": "101.200.241.0", "port": 6379, "password": "ehason"}; const a = require('./index')(r); a.genToken({name: 'u', sex: 'm'}, 100).then( t =>{ console.log(t); });