/
websites
/
operateit-node
/
node_modules
/
adonis-cache
/
providers
/
Upload File
HOME
'use strict' /** * adonis-cache * * (c) Hany El Nokaly <hany.elnokaly@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const { ServiceProvider } = require('@adonisjs/fold') const CacheManager = require('../src/Stores/CacheManager') class CacheProvider extends ServiceProvider { /** * Register all the required providers * * @method register * * @return {void} */ register () { this.app.singleton('Adonis/Addons/Cache', (app) => { return new CacheManager(app) }) } } module.exports = CacheProvider