blob: bb9aaffa7d9226866e67124ea76c429568e263e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
}
// ###########################################################################
|