src/ThrottleTrait.php
protected function _initCache()
    {
        if (!Cache::getConfig(static::$cacheConfig)) {
            Cache::setConfig(static::$cacheConfig, [
                'className' => $this->_getDefaultCacheConfigClassName(),
                'prefix' => static::$cacheConfig . '_' . $this->_identifier,
                'duration' => $this->getConfig('interval'),
            ]);
        }
    }
protected function _initCache()
    {
        if (!Cache::getConfig(static::$cacheConfig)) {
            Cache::setConfig(static::$cacheConfig, [
                'className' => $this->_getDefaultCacheConfigClassName(),
                'prefix' => static::$cacheConfig . '_' . $this->_identifier,
                'duration' => $this->getConfig('interval'),
            ]);
        }
    }
protected function _initCache ( ) { if ( ! Cache :: getConfig ( static :: $ cacheConfig ) ) { Cache :: setConfig ( static :: $ cacheConfig , [ 'className' => $ this -> _getDefaultCacheConfigClassName ( ) , 'prefix' => static :: $ cacheConfig . '_' . $ this -> _identifier , 'duration' => $ this -> getConfig ( 'interval' ) , ] ) ; } }
Initializes cache configuration.

@return void
Initializes cache configuration .