PHP code example of werkint / memcached-bundle
1. Go to this page and download the library: Download werkint/memcached-bundle 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/ */
werkint / memcached-bundle example snippets
namespace Company\MainBundle\Service;
use Doctrine\Common\Cache\CacheProvider;
class Service
{
protected $cacher;
public function __construct(
CacheProvider $cacher
) {
$this->cacher = $cacher;
}
// You now can use doctrine cache provider as usual
}