コード例 #1
0
 /**
  * @return array<kBaseCacheWrapper>
  */
 protected static function getStores($cacheType = kCacheManager::CACHE_TYPE_RESPONSE_PROFILE)
 {
     if (is_array(self::$cacheStores)) {
         return self::$cacheStores;
     }
     self::$cacheStores = array();
     $cacheSections = kCacheManager::getCacheSectionNames($cacheType);
     if (is_array($cacheSections)) {
         foreach ($cacheSections as $cacheSection) {
             $cacheStore = kCacheManager::getCache($cacheSection);
             if ($cacheStore) {
                 self::$cacheStores[] = $cacheStore;
             }
         }
     }
     return self::$cacheStores;
 }