Return a method-customized Cache key generated by using the current active class, id and $with array.
If not customName is provided, the name of the calling method will be used.

@param  string|bool $customName

@return string
975611
public function getCustomMethodKey($customName = false)
    {
        if (!$customName) {
            $customName = debug_backtrace()[1]['function'];
        }

        $string = $this->getString() . $this->xmlFilePath . $customName;

        return md5($string);
    }
1207761
static function internalKey( $key )
    {
        $ini = eZINI::instance();
        $debug = $ini->variable( 'TemplateSettings', 'Debug' ) == 'enabled';
        if ( $debug )
            $key = $key . '-debug';
        else
            $key = $key . '-clean';
        return $key;
    }
681835
private function getClassInfo(string $className): stdClass
    {
        $json = $this->getLastJsonResponse();

        if (isset($json->{'hydra:supportedClass'})) {
            foreach ($json->{'hydra:supportedClass'} as $classData) {
                if ($classData->{'hydra:title'} === $className) {
                    return $classData;
                }
            }
        }

        throw new \InvalidArgumentException(sprintf('Class %s cannot be found in the vocabulary', $className));
    }
1128637
protected function getCacheFilename($name)
    {
        $class = substr($this->generateClassName($name), strlen(static::CLASS_PREFIX));

        return str_replace(
            '/',
            DIRECTORY_SEPARATOR,
            sprintf(
                '%s/%s/%s/%s.php',
                $this->getCacheDir(),
                substr($class, 0, 2),
                substr($class, 2, 2),
                substr($class, 4)
            )
        );
    }
643795
public function getKey(): string
    {
        if (null === $this->name) {
            return $this->type;
        }

        return $this->type . '#' . $this->name;
    }
1177389
protected function _getCacheId($name)
    {
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        return $name . '_' . $oConfig->getShopId() . '_' . Registry::getLang()->getBaseLanguage() . '_' . (int) $oConfig->getShopCurrency();
    }
382756
public static function getCombinerCacheKey()
    {
        $theme = CmsTheme::getActiveTheme();
        if (!$theme->hasCustomData()) {
            return '';
        }

        $customData = $theme->getCustomData();

        return (string) $customData->updated_at ?: '';
    }
119611
public function getCacheKey(): string
    {
        return $this->getTypePrefix() . $this->getFlexType() . '.' . sha1(json_encode($this->call('getKey')));
    }
862338
public function getName($key)
    {
        // templates do not translate the template key
        if (Structure::TYPE_SNIPPET === $this->structureType) {
            if ('template' === $key) {
                return $key;
            }
        }

        if (isset($this->translatedProperties[$key])) {
            return $this->translatedProperties[$key]->getName();
        } else {
            throw new NoSuchPropertyException($key);
        }
    }
474068
protected function getScaffoldedModel($className)
    {
        if (! $fields = $this->cache->getFields())
        {
            return str_replace('{{rules}}', '', $this->template);
        }

        $rules = array_map(function($field) {
            return "'$field' => 'required'";
        }, array_keys($fields));

        return str_replace('{{rules}}', PHP_EOL."\t\t".implode(','.PHP_EOL."\t\t", $rules) . PHP_EOL."\t", $this->template);
    }
180039
protected function getCacheKey($name) {
        $filename = str_replace('\\',DIRECTORY_SEPARATOR,$this->options['path'] . $name . $this->options['ext']);
        return $filename;
    }
698757
public function getCustomMethodTags($customName = false, $id = false, array $array = [])
    {
        return $this->keyManager->getCustomMethodTags($customName, $id, $array, $this->section, $this->modelClass);
    }
436300
public static function underscore($name)
    {
        if (!isset(self::$underscoreCache[$name])) {
            $underscoreName = strtolower(preg_replace('/(\B)([A-Z])/', '$1_$2', $name));
            self::$underscoreCache[$name] = $underscoreName;

            if (!isset(self::$camelizeCache[$underscoreName])) {
                self::$camelizeCache[$underscoreName] = $name;
            }
        }

        return self::$underscoreCache[$name];
    }
324809
public function getMemcached()
    {
        if ($this->_cache === null) {
            if (!extension_loaded('memcached')) {
                throw new InvalidConfigException('MemCached requires PHP memcached extension to be loaded.');
            }

            $this->_cache = $this->persistentId !== null ? new \Memcached($this->persistentId) : new \Memcached;
            if ($this->username !== null || $this->password !== null) {
                $this->_cache->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
                $this->_cache->setSaslAuthData($this->username, $this->password);
            }
            if (!empty($this->options)) {
                $this->_cache->setOptions($this->options);
            }
        }

        return $this->_cache;
    }
1075254
protected function getCacheKey()
    {
        $target = $this->getSourceObject();
        if (!isset(self::$cacheKeyCache[$target])) {
            self::$cacheKeyCache[$target] = DataList::create($target)->max('LastEdited');
        }
        return self::$cacheKeyCache[$target];
    }
864814
public function getClassName($key, $default, $interface, $createClass = false, array $params = null)
    {
        $class = Base::instance()->get($key) ?: $default;

        if (!is_subclass_of($class, $interface)) {
            throw new InvalidArgumentException(sprintf(
                '%s must be an instance of %s',
                $key,
                $interface
            ));
        }

        if ($createClass) {
            $params = (array) $params;

            if (is_subclass_of($class, Prefab::class)) {
                return call_user_func_array([$class, 'instance'], $params);
            } else {
                $ref = new ReflectionClass($class);

                return $ref->hasMethod('__construct') && $params ?
                    $ref->newInstanceArgs($params) : $ref->newInstance();
            }
        }

        return $class;
    }
816993
protected function getCacheFileName($key)
    {
        $name = strtolower(basename($key));
        $shopId = strtolower(basename($this->getShopIdCalculator()->getShopId()));

        return parent::CACHE_FILE_PREFIX . ".$shopId.$name.txt";
    }