当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Cache_Core::__construct方法代码示例

本文整理汇总了PHP中Zend_Cache_Core::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Cache_Core::__construct方法的具体用法?PHP Zend_Cache_Core::__construct怎么用?PHP Zend_Cache_Core::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Cache_Core的用法示例。


在下文中一共展示了Zend_Cache_Core::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  *
  * @throws Varien_Exception
  * @param array|Zend_Config $options Associative array of options or Zend_Config instance
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     if (!is_numeric($this->getOption('slab_size'))) {
         throw new Varien_Exception("Invalid value for the node <slab_size>. Expected to be integer.");
     }
 }
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:13,代码来源:Core.php

示例2: __construct

 /**
  * Constructor
  * 
  * @param array $options associative array of options
  * @param boolean $doNotTestCacheValidity if set to true, the cache validity won't be tested
  */
 public function __construct($options = array())
 {
     if (isset($options['httpConditional'])) {
         if ($options['httpConditional']) {
             Zend_Cache::throwException('httpConditional is not implemented for the moment !');
         }
     }
     parent::__construct($options);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:15,代码来源:Page.php

示例3: __construct

 public function __construct()
 {
     $options = array('lifetime' => null, 'write_control' => false, 'automatic_cleaning_factor' => 0, 'automatic_serialization' => true);
     parent::__construct($options);
     $be = Kwf_Cache_Simple::getBackend();
     if ($be == 'memcache' || $be == 'redis') {
         throw new Kwf_Exception("don't use thru Zend_Cache");
     } else {
         if ($be == 'apc') {
             $this->setBackend(new Kwf_Cache_Backend_Apc());
         } else {
             if ($be == 'apcu') {
                 $this->setBackend(new Kwf_Cache_Backend_Apcu());
             } else {
                 //fallback to file backend (NOT recommended!)
                 $this->setBackend(new Kwf_Cache_Backend_File(array('cache_dir' => 'cache/view', 'hashed_directory_level' => 2)));
             }
         }
     }
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:20,代码来源:MemoryZend.php

示例4: __construct

 public function __construct()
 {
     $options = array('lifetime' => null, 'write_control' => false, 'automatic_cleaning_factor' => 0, 'automatic_serialization' => true);
     parent::__construct($options);
     $be = Kwf_Cache_Simple::getBackend();
     if ($be == 'elastiCache') {
         $this->setBackend(new Kwf_Util_Aws_ElastiCache_CacheBackend(array('cacheClusterId' => Kwf_Config::getValue('aws.simpleCacheCluster'), 'compression' => true)));
         //do *not* use cache_namespace for this cache (we don't want to delete it on clear-cache)
     } else {
         if ($be == 'memcache') {
             throw new Kwf_Exception("don't use thru Zend_Cache");
         } else {
             if ($be == 'apc') {
                 $this->setBackend(new Kwf_Cache_Backend_Apc());
             } else {
                 //fallback to file backend (NOT recommended!)
                 $this->setBackend(new Kwf_Cache_Backend_File(array('cache_dir' => 'cache/view', 'hashed_directory_level' => 2)));
             }
         }
     }
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:21,代码来源:MemoryZend.php

示例5: __construct

 /**
  * Constructor
  *
  * @param  array $options Associative array of options
  * @return void
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->_idStack = array();
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:11,代码来源:Output.php

示例6: __construct

 /**
  * Constructor
  * 
  * @param array $options associative array of options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:9,代码来源:Output.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(array('automatic_serialization' => true, 'lifetime' => null, 'automatic_cleaning_factor' => 0));
     $this->setBackend(new Kwf_Cache_Backend_File(array('cache_dir' => 'cache/config')));
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:5,代码来源:Cache.php


注:本文中的Zend_Cache_Core::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。