Cached data for current downline customer.

@return \Praxigento\Downline\Repo\Data\Customer
8105
private function getDwnlCustomer()
    {
        if (is_null($this->cacheDwnlCust)) {
            $custId = $this->session->getCustomerId();
            $this->cacheDwnlCust = $this->daoDwnlCust->getById($custId);
        }
        return $this->cacheDwnlCust;
    }
764545
public function getDataForCache()
    {
        $reflectionClass = new \ReflectionObject($this);
        $array = array();
        $excludes = array_flip($this->excludedPropertiesForCache);
        $excludes['excludedPropertiesForCache'] = true;
        foreach ($reflectionClass->getProperties() as $property) {
            $propertyName = $property->getName();
            if (!isset($excludes[$propertyName])
                && null !== $value = $this->processPropertyForCache($propertyName)) {
                $array[$propertyName] = $value;
            }
        }

        return $this->encodeDataForCache($array);
    }
1030271
protected static function cacheReqData()
	{
		//fetch relevant vars
		$host = rtrim(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'], '/');
		$pathInfo = !empty($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : (!empty($_SERVER['ORIG_PATH_INFO']) ? $_SERVER['ORIG_PATH_INFO'] : '');

		$hostParts = array_reverse(explode('.', $host));
		$pathParts = explode('/', $pathInfo);

		static::$RCACHE = [
			'protocol'=>!empty($_SERVER['HTTPS']) ? 'https' : 'http',
			'host'=>$host,
			'uri'=>$_SERVER['REQUEST_URI'],
			'queryString'=>$_SERVER['QUERY_STRING'],
			'hostParts'=>$hostParts,
			'numParts'=>count($hostParts),
			'pathParts'=>$pathParts,
			'numPathParts'=>count($pathParts),
		];
	}
988375
public function getCache()
    {
        if (null == $this->cache) {
            $this->setCache(Cache::get(Cache::CACHE_MEMORY));
        }
        return $this->cache;
    }
1166419
public function getCache()
    {
        $data = apc_fetch($this->config['key_prefix'] . '.storage');
        $this->isCached = !empty($data);

        return $data;
    }
760140
protected function customerData() {return dfc($this, function() {$c = $this->c(); return df_clean([
		'dob' => $c->dob()
		,'email' => $c->email() ?: df_next_increment('customer_entity') . '@none.com'
		,'firstname' => $c->nameFirst()
		/**
		 *	if ($customer->getForceConfirmed() || $customer->getPasswordHash() == '') {
		 *		$customer->setConfirmation(null);
		 *	}
		 *	elseif (!$customer->getId() && $customer->isConfirmationRequired()) {
		 *		$customer->setConfirmation($customer->getRandomConfirmationKey());
		 *	}
		 * https://github.com/magento/magento2/blob/6fa09047a6d4a1ec71494fadec5a42284ba7cc1d/app/code/Magento/Customer/Model/ResourceModel/Customer.php#L133
		 */
		,'force_confirmed' => true
		,'gender' => $c->gender()
		,'lastname' => $c->nameLast()
		,'middlename' => $c->nameMiddle()
		,'password' => $c->password()
		,'taxvat' => df_is_customer_attribute_required('taxvat') ? '000000000000' : ''
		,$this->fId() => $c->id()
	]);});}
1157218
public function getCacheFrontend() {
		if ($this->_cacheFrontendWrapper === null) {
			// Try the personal frontend for the service
			if ($this instanceof LocatorAwareInterface && $this->hasLocator()) {
				$locator   = $this->getLocator();
				$serviceId = $this->getCacheFrontendServiceId();
				
				if ($locator->has($serviceId)) {
					$this->_cacheFrontendWrapper = $locator->get($serviceId);
					return $this->_cacheFrontendWrapper;
				}
			}
			
			// Try to create through a factory
			if ($this->hasCacheFrontendFactory() && method_exists($this, 'getServiceName')) {
				$this->_cacheFrontendWrapper = $this->getCacheFrontendFactory()->createWrapper($this->getServiceName());
				return $this->_cacheFrontendWrapper;
			}
			
			throw new NoFrontend('Unable to provide the cache frontend');
		}
		
		return $this->_cacheFrontendWrapper;
	}
279188
public function getCache()
    {
        if (empty($this->cache)) {
            $this->cache = new HierarchicalSimpleCache($this->getMySQL(), basename(__FILE__, '.php'));
        }
        return $this->cache;
    }
174431
public function cache()
    {
        Artisan::call('cache:clear');
        $this->log->info(trans('cms::utilities.cache.success') . trans('cms::utilities.field.executed_by',
                ['name' => $this->getCurrentUserName()]));

        return $this->notifySuccess(trans('cms::utilities.cache.success'));
    }
912477
public function get_cache()
    {
        $args = func_get_args();
        $cache_path = call_user_func_array(array($this, 'get_path'), $args);

        if (is_file($cache_path)) {
            return file_get_contents($cache_path);
        }
        return null;
    }
1077021
public function getRawConfig()
    {
        if ($this->_data === null) {
            if ($this->cache instanceof Cache) {

                $data = $this->cache->get($this->cacheKey);

                if ($data === false) {
                    $data = $this->model->getSettings();
                    $this->cache->set($this->cacheKey, $data);
                }
            } else {
                $data = $this->model->getSettings();
            }
            $this->_data = $data;
        }
        return $this->_data;
    }
374226
public function cachedData()
    {
        if (!$this->isCached()) {
            return null;
        }

        $contents = file_get_contents($this->file);

        $serializationEnabled = static::config('serialize');

        $data = $serializationEnabled ? unserialize($contents) : $contents;

        return $data;
    }
1269214
public function getCache() {
    if (!isset($this->cache))
      $this->cache = new \Doctrine\Common\Cache\ArrayCache;
      
    return $this->cache;
  }
410161
function cacheApplication() {
        $this->log("Downloading application...");
        $app = Config::instance()->application->apiClient()->get("application", array("definition" => "true"));
        $this->cache(Application::cacheKey(), json_encode($app));
        $this->log("Application has been cached.");
        return $app;
    }
951816
protected function getCacheItemPool()
    {
        $cacheItemPool = cache()->getObject('default');

        if (cache()->exists('sso')) {
            $cacheItemPool = cache()->getObject('sso');
        }

        return $cacheItemPool;
    }
1291093
public function getCacheManager()
    {
        if ($this->cache instanceof Closure) {
            $this->cache = call_user_func($this->cache);
        }

        return $this->cache;
    }
28959
public function cached()
    {
        // check cache is available else set cache and return
        return Cache::get('Klaravel\Settings\Setting', function () {
            $data = $this->get();
            Cache::put('Klaravel\Settings\Setting', $data, 60 * 24);

            return $data;
        });
    }