returns the caching key

@param string $original original string

@return string cache key
542831
private function getCacheKey($original)
    {
        return sprintf(
            'translator_%s_%s',
            implode('.', $this->getLanguages()),
            str_pad(strtolower(substr($original, 0, $this->cacheNameDepth)), $this->cacheNameDepth, '.')
        );
    }
426639
protected function _get_key($remove = false)
	{
		// get the current index information
		list($identifier, $sections, $index) = $this->_get_index();

		// get the key from the index
		$key = isset($index[$identifier][0]) ? $index[$identifier][0] : false;

		if ($remove === true)
		{
			if ( $key !== false )
			{
				unset($index[$identifier]);
				apc_store($this->config['cache_id'].$sections, $index);
			}
		}
		else
		{
			// create a new key if needed
			$key === false and $key = $this->_new_key();
		}

		return $key;
	}
155792
public function find($context, $original = '')
    {
        if ($context instanceof Translation) {
            $id = $context->getId();
        } else {
            $id = Translation::generateId($context, $original);
        }

        return $this->offsetExists($id) ? $this[$id] : false;
    }
852059
public static function getCache($key) {
        $key = static::createCacheKey($key);

        if (static::hasCache($key)) {
            return static::$_cache[$key];
        }

        return null;
    }
1061868
public function get($key, $default = null)
    {
        /* If $key is not valid string throws InvalidArgumentException */
        if (!$this->isString($key)) {
            throw new InvalidArgumentException('Cache key must be not empty string');
        }

        return $this->getCollection()->get($key) ?? $default;
    }
486634
protected function _get_key($remove = false)
	{
		// get the current index information
		list($identifier, $sections, $index) = $this->_get_index();
		$index = $index === null ? array() : $index = $this->_unserialize($index);

		// get the key from the index
		$key = isset($index[$identifier][0]) ? $index[$identifier][0] : false;

		if ($remove === true)
		{
			if ( $key !== false )
			{
				unset($index[$identifier]);
				static::$redis->set($this->config['cache_id'].':index:'.$sections, $this->_serialize($index));
			}
		}
		else
		{
			// create a new key if needed
			$key === false and $key = $this->_new_key();
		}

		return $key;
	}
416446
public function get($key, $default = null) {

		$files = glob(Path :: get('cache-shared') . $this -> generateName($key));

		if(true === is_array($files) && count($files) > 0) {

			$file 		= new File($files[0]);
			$expiration = $this -> extractExpiration($file);

			if($expiration -> time >= time()) {
				return unserialize($file -> getContent());
			}

			$file -> delete();
		}

		return $default;
	}
474090
public function getFromCache($key)
    {
        $fileName = $this->getCacheFilePath($key);
        $value = null;
        if (is_readable($fileName)) {
            $value = file_get_contents($fileName);
            if ($value == serialize(false)) {
                return false;
            }

            $value = unserialize($value);
            if ($value === false) {
                $value = null;
            }
        }

        return $value;
    }
569273
public function get(/*# string */ $key)/*# : string */
    {
        // try front-end cache first
        if ($this->frontHas($key)) {
            return $this->front->get($key);
        }

        // get from backend cache
        return $this->back->get($key);
    }
454643
function get( $key, $default = null ) {
            $this->_logger->entrance( 'key = ' . $key );

            $cache_entry = $this->_options->get_option( $key, false );

            if ( is_object( $cache_entry ) &&
                 isset( $cache_entry->timestamp ) &&
                 is_numeric( $cache_entry->timestamp )
            ) {
                return $cache_entry->result;
            }

            return is_object( $default ) ? clone $default : $default;
        }
1337054
public function get($key, $default = null)
    {
        if (! $this->cache) {
            return $this->getNoCache($key, $default);
        }

        return Cache::rememberForever('settings-'.implode(',', (array) $key), function () use ($key, $default) {
            return $this->getNoCache($key, $default);
        });
    }
1080573
public function key(): string
    {
        if ($this->cacheEntriesIterator === null) {
            $this->rewind();
        }
        return $this->cacheEntriesIterator->key();
    }
37341
public function getOriginalMetaData(string $key, $default = null)
    {
        $meta = $this->accessMetableAttribute($this->getOriginal('meta'));

        return $meta->get($key, $default);
    }
843053
public function get( $original )
	{
		$original = (string) $original;

		if( isset( $this->messages[$original] ) ) {
			return $this->messages[$original];
		}

		return false;
	}
331185
protected String refineKey(Object key) {
        String refinedKey = DigestUtils.md5Hex(String.valueOf(key)) + "_" + String.valueOf(key.hashCode());
        log.debug("QueryResultCache refineKey original {} to {}", key, refinedKey);
        return refinedKey;
    }
605360
private function getFromCacheByKey($key)
    {
        if ( ! $this->cache->contains($key)) {
            return null;
        }

        $serialized = $this->cache->fetch($key);

        return $this->unserializeAcl($serialized);
    }
659574
private function removeFromCache($original)
    {
        $cacheKey = $this->getCacheKey($original);
        $cacheContent = $this->cache->fetch($this->getCacheKey($original));
        if (is_array($cacheContent) && isset($cacheContent[$original])) {
            unset($cacheContent[$original]);
            $this->cache->save($cacheKey, $cacheContent);
        }
    }