Newscoop\Services\CacheService::getNamespace PHP Method

getNamespace() public method

public getNamespace ( $namespace )
    public function getNamespace($namespace)
    {
        if ($this->getCacheDriver()->contains($namespace)) {
            return $this->getCacheDriver()->fetch($namespace);
        }
        $value = $namespace . '|' . time() . '|' . $this->systemPreferences->SiteSecretKey;
        $this->getCacheDriver()->save($namespace, $value);
        return $value;
    }