18 lines
366 B
JavaScript
18 lines
366 B
JavaScript
|
import console from 'console'
|
||
|
import ai from 'ai'
|
||
|
|
||
|
// ai.set('aaa', 111)
|
||
|
// let aaa = ai.get('aaa')
|
||
|
// if (aaa !== 111) return 'set value error'
|
||
|
//
|
||
|
// try {
|
||
|
// ai.get('bbb')
|
||
|
// return 'no exception when getting non-existent key'
|
||
|
// } catch (ex){
|
||
|
// logger.error(ex.message, {stack:ex.stack})
|
||
|
// }
|
||
|
// logger.info('aaa')
|
||
|
// ai.remove('bbb')
|
||
|
//
|
||
|
return true
|