Added import for cache to initiate our tmdb class in the correct way, but still not implemented the actual cache lookup.
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve a list of movies or shows in discover section in TMDB
|
* Controller: Retrieve a list of movies or shows in discover section in TMDB
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve upcoming movies
|
* Controller: Retrieve upcoming movies
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve nowplaying movies / now airing shows
|
* Controller: Retrieve nowplaying movies / now airing shows
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve information for a movie
|
* Controller: Retrieve information for a movie
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve information for a movie
|
* Controller: Retrieve information for a movie
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
|
const Cache = require('src/tmdb/cache');
|
||||||
const TMDB = require('src/tmdb/tmdb');
|
const TMDB = require('src/tmdb/tmdb');
|
||||||
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
|
const cache = new Cache();
|
||||||
|
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller: Retrieve similar movies or shows
|
* Controller: Retrieve similar movies or shows
|
||||||
|
|||||||
Reference in New Issue
Block a user