PHP code example of cache / mongodb-adapter
1. Go to this page and download the library: Download cache/mongodb-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cache / mongodb-adapter example snippets
$manager = new Manager('mongodb://'.getenv('MONGODB_HOST'));
$collection = MongoDBCachePool::createCollection($manager, 'localhost:27017', 'psr6test.cache');
$pool = new MongoDBCachePool($collection);