You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

// ===============================================UUID && Token========================================================
//
// async function test() {
// const R = await Redis()
// await R.setLogin('uuid1', 'token11')
// await R.setLogin('uuid1', 'token12')
// await R.setLogin('uuid1', 'token13')
// await R.setLogin('uuid1', 'token14')
// await R.setLogin('uuid1', 'token15')
// console.log(await R.getLogin('uuid1'))
// await R.delLogin('uuid1', 'token15')
// console.log(await R.getLogin('uuid1'))
// // await R.setLogin('uuid1', 'token16')
// // await R.setLogin('uuid1', 'token17')
// // await R.setLogin('uuid1', 'token18')
// // await R.setLogin('uuid1', 'token19')
// // await R.setLogin('uuid1', 'token10')
// // await R.setLogin('uuid2', 'token21')
// // await R.setLogin('uuid2', 'token22')
// // await R.setLogin('uuid2', 'token273')
// // await R.setLogin('uuid2', 'token23')
// // await R.setLogin('uuid2', 'token24')
// // await R.setLogin('uuid2', 'token25')
// // await R.setLogin('uuid2', 'token26')
// // await R.setLogin('uuid2', 'token27')
// // await R.setLogin('uuid2', 'token28')
// // await R.clearLoginArr()
// // console.log(await R.getToken('token21'));
// // console.log(await R.getLogin('uuid1'));
// // console.log(await R.getLogin('uuid2'));
// // console.log('end')
// }
// test()