From a9455a1ea2da53805e86a090305c40a09c9f1c48 Mon Sep 17 00:00:00 2001 From: biohzrdmx Date: Wed, 31 Mar 2021 10:22:43 -0600 Subject: [PATCH] Small tweaks to README --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1b43626..22d24f9 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,15 @@ And that's it. Easy peasy. Usually all those operations are executed in the following form: ```php +use Cacher\Cacher; + $cacher = new Cacher(BASE_DIR . '/cache'); if ( $cacher->isCached('results') ) { - $results = $cacher->retrieve('results'); + $results = $cacher->retrieve('results'); } else { - $results = fetchResultsFromSomeSource(); - $cacher->store('results', $results); + $results = fetchResultsFromSomeSource(); + $cacher->store('results', $results); } ```