Skip to content

Commit be8ef91

Browse files
committed
Updated readme.md
- documentation on how to use caching
1 parent 100516d commit be8ef91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $ composer require hmerritt/imdb-api
2626
- actor name
2727
- actor id
2828
- image
29-
- Technical Specs
29+
- *Technical Specs*
3030

3131
### Search
3232
Search IMDB to return an array of films, people and companies
@@ -60,6 +60,11 @@ If you do not know the imdb-id of a film, a search string can be entered. This w
6060
$imdb->film("Apocalypse");
6161
```
6262

63+
### Caching
64+
Film data can be cached to speed up future requests of the same film.
65+
```php
66+
$imdb = new Imdb($cache=true);
67+
```
6368

6469
### Technical Specifications
6570
A films technical specifications can also be fetched by setting the `$techSpecs` param to `true`.
@@ -79,3 +84,4 @@ $imdb->film("tt0816692", $techSpecs=true);
7984
> All dependencies are managed automatically by `composer`.
8085
8186
- [php-html-parser](https://github.com/paquettg/php-html-parser)
87+
- [filebase](https://github.com/tmarois/Filebase)

0 commit comments

Comments
 (0)