Phalcon\Test\Cache\Backend\AerospikeTest::getAdapter PHP 메소드

getAdapter() 개인적인 메소드

private getAdapter ( $lifetime = 20 )
    private function getAdapter($lifetime = 20)
    {
        if ($lifetime) {
            $frontCache = new CacheData(['lifetime' => $lifetime]);
        } else {
            $frontCache = new CacheData();
        }
        $cache = new CacheAerospike($frontCache, $this->getConfig());
        return $cache;
    }