Skip to content

Commit 0e91f69

Browse files
committed
Fixed #569 // Updated wiki code sample
1 parent 9182d91 commit 0e91f69

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ composer require phpFastCache/phpFastCache
240240
use phpFastCache\CacheManager;
241241

242242
// Setup File Path on your config files
243-
CacheManager::setup(array(
243+
CacheManager::setDefaultConfig([
244244
"path" => '/var/www/phpfastcache.com/dev/tmp', // or in windows "C:/tmp/"
245-
));
245+
]);
246246

247247
// In your class, function, you can call the Cache
248248
$InstanceCache = CacheManager::getInstance('files');
@@ -280,8 +280,9 @@ echo implode('<br />', $CachedString->get());// Will echo your product list
280280

281281
```
282282

283-
##### :floppy_disk: Legacy / Lazy Method (Without Composer)
284-
* See the file examples/withoutComposer.php for more information.
283+
##### :floppy_disk: Legacy implementation (Without Composer)
284+
PhpFastCache provide it's own autoload for legacy implementation.
285+
Please see the sample in docs/examples/withoutComposer.php for more information.
285286

286287
#### :zap: Step 3: Enjoy ! Your website is now faster than lightning !
287288
For curious developers, there is a lot of other examples available [here](https://github.com/PHPSocialNetwork/phpfastcache/tree/final/docs/examples).

0 commit comments

Comments
 (0)