public function getActiveExperiments()
    {
        if ($this->cache->contains($this->activeExperimentsSettingName)) {
            return $this->cache->fetch($this->activeExperimentsSettingName)['value'];
        }

        if ($this->has($this->activeExperimentsSettingName)) {
            $experiments = $this->get($this->activeExperimentsSettingName)->getValue();
        } else {
            $this->create(
                [
                    'name' => $this->activeExperimentsSettingName,
                    'value' => [],
                    'type' => 'hidden',
                ]
            );
            $experiments = [];
        }

        $this->cache->save($this->activeExperimentsSettingName, ['value' => $experiments]);

        return $experiments;
    }
public function getActiveExperiments()
    {
        if ($this->cache->contains($this->activeExperimentsSettingName)) {
            return $this->cache->fetch($this->activeExperimentsSettingName)['value'];
        }

        if ($this->has($this->activeExperimentsSettingName)) {
            $experiments = $this->get($this->activeExperimentsSettingName)->getValue();
        } else {
            $this->create(
                [
                    'name' => $this->activeExperimentsSettingName,
                    'value' => [],
                    'type' => 'hidden',
                ]
            );
            $experiments = [];
        }

        $this->cache->save($this->activeExperimentsSettingName, ['value' => $experiments]);

        return $experiments;
    }
public function getActiveExperiments ( ) { if ( $ this -> cache -> contains ( $ this -> activeExperimentsSettingName ) ) { return $ this -> cache -> fetch ( $ this -> activeExperimentsSettingName ) [ 'value' ] ; } if ( $ this -> has ( $ this -> activeExperimentsSettingName ) ) { $ experiments = $ this -> get ( $ this -> activeExperimentsSettingName ) -> getValue ( ) ; } else { $ this -> create ( [ 'name' => $ this -> activeExperimentsSettingName , 'value' => [ ] , 'type' => 'hidden' , ] ) ; $ experiments = [ ] ; } $ this -> cache -> save ( $ this -> activeExperimentsSettingName , [ 'value' => $ experiments ] ) ; return $ experiments ; }
Returns an array of active experiments names either from cache or from es.
If none are found, the setting with no active experiments is created.

@return array
Returns an array of active experiments names either from cache or from es . If none are found the setting with no active experiments is created .