This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/start/redis.js

25 lines
559 B
JavaScript
Raw Permalink Normal View History

'use strict'
/*
|--------------------------------------------------------------------------
| Redis Subscribers
|--------------------------------------------------------------------------
|
| Here you can register the subscribers to redis channels. Adonis assumes
| your listeners are stored inside `app/Listeners` directory.
|
*/
// const Redis = use('Redis')
/**
* Inline subscriber
*/
// Redis.subscribe('news', async () => {
// })
/**
* Binding method from a module saved inside `app/Listeners/News`
*/
// Redis.subcribe('news', 'News.onMessage')