Mvc\Model\MetaData\Xcache

Class Phalcon\Mvc\Model\MetaData\Xcache

extends abstract class Phalcon\Mvc\Model\MetaData

implements Phalcon\Mvc\Model\MetaDataInterface, Phalcon\DI\InjectionAwareInterface

Stores model meta-data in the XCache cache. Data will erased if the web server is restarted By default meta-data is stored for 48 hours (172800 seconds) You can query the meta-data by printing xcache_get(‘$PMM$’) or xcache_get(‘$PMM$my-app-id’)

$metaData = new Phalcon\Mvc\Model\Metadata\Xcache(array(
    'prefix' => 'my-app-id',
    'lifetime' => 86400
));

Constants

登录查看完整内容