phpThumb Max Cache Files ~
Delete least-recently-accessed thumbnails when cache has more than X files.

@param string $value

@return $this
764050
public function setCorePhpthumbCacheMaxfiles($value)
    {
        $this->setFieldName('phpthumb_cache_maxfiles');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
85771
public function setCorePhpthumbNooffsitelinkRequireRefer($value)
    {
        $this->setFieldName('phpthumb_nooffsitelink_require_refer');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
553254
public static function setCacheGeneral($value)
    {
        $cache = self::getCache();

        return $cache->save(self::$cacheIdGeneral, $value, self::getTtl());
    }
861222
public function setCoreCacheDbSession($value)
    {
        $this->setFieldName('cache_db_session');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
948189
public function removeDealerFolderVersion($value)
    {
        $targetArray = array();
        foreach ($this->getDealerFolderVersions() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerFolderVersions($targetArray);

        return $this;
    }
765906
public function setCoreUploadFiles($value)
    {
        $this->setFieldName('upload_files');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
134
public function setHash(string $value) : User
    {

        if ($this->data['hash'] !== $value) {
            $this->data['hash'] = $value;
            $this->setModified('hash');
        }

        return $this;
    }
447989
public function setCoreCacheDisabled($value)
    {
        $this->setFieldName('cache_disabled');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
609964
public function setDirectoryForPlaces($value)
    {
        $this->directoryForPlaces = trim(str_replace(DIRECTORY_SEPARATOR, '/', trim((string) $value)), '/');

        return $this;
    }
253837
public function setCoreCacheFormat($value)
    {
        $this->setFieldName('cache_format');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
806990
public function setCorePhpthumbErrorBgcolor($value)
    {
        $this->setFieldName('phpthumb_error_bgcolor');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
589541
public function offsetSet($offset, $value)
    {
        $hash = $this->hashAlgo->hash($offset);
        $dir = $this->buildKeysCachingPath($hash);
        if (!file_exists($this->getCachePath() . $dir)) {
            mkdir($this->getCachePath() . $dir, 0744, true);
        }
        $filePath = $this->getCachePath() . $dir . $hash;
        if ($this->offsetExists($filePath)) {
            unlink($filePath);
        }
        $encoded = $this->codec->encode($value);
        file_put_contents($filePath, $encoded);
        unset($encoded);

        return $this;
    }
1123800
public function setCorePhpthumbCacheSourceEnabled($value)
    {
        $this->setFieldName('phpthumb_cache_source_enabled');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
196348
public function setMaxRow($value)
    {
        if ($value != null) {
            $this->_params['max-row'] = $value;
        } else {
            unset($this->_params['max-row']);
        }
        return $this;
    }
852788
public function setDirectoryToParse($value)
    {
        $this->directoryToParse = trim(str_replace(DIRECTORY_SEPARATOR, '/', trim((string) $value)), '/');

        return $this;
    }
770813
public function setCorePhpthumbImagemagickPath($value)
    {
        $this->setFieldName('phpthumb_imagemagick_path');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
290875
public function setCorePhpthumbNohotlinkValidDomains($value)
    {
        $this->setFieldName('phpthumb_nohotlink_valid_domains');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }