blob: bb9aaffa7d9226866e67124ea76c429568e263e1 (
plain) (
tree)
|
|
async function register ({
storageManager,
peertubeHelpers
}) {
const { logger } = peertubeHelpers
{
await storageManager.storeData('superkey', { value: 'toto' })
await storageManager.storeData('anotherkey', { value: 'toto2' })
const result = await storageManager.getData('superkey')
logger.info('superkey stored value is %s', result.value)
}
}
async function unregister () {
return
}
module.exports = {
register,
unregister
}
// ###########################################################################
|