ApcuCache example

return $this;
    }

    /** * @return CacheProvider|null */
    public function detectCacheProvider()
    {
        $cache = null;

        if (\extension_loaded('apcu')) {
            $cache = new ApcuCache();
        } elseif (\extension_loaded('xcache')) {
            $cache = new XcacheCache();
        }

        return $cache;
    }

    /** * @throws Exception */
    public function setCacheProvider(array $options)
    {
Home | Imprint | This part of the site doesn't use cookies.