get's the apc key belonging to the cache identifier

@param   bool  if true, remove the key retrieved from the index
@return  string
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;
	}
257314
public function getPid(bool $required = true) {
		if (null !== ($id = $this->getId($required))) {
			return $this->getEiType()->idToPid($id);
		}
		
		return null;
	}
972285
public function get($key)
    {
        if (!$this->requireProvider("Getting key " . $key)) return false;

        return $this->cacheProvider->get($key);
    }
1067904
public static function getBool(string $key, bool $defaultValue = false, ?string $app = null): bool
    {
        return self::repository($app)->getBool($key, $defaultValue);
    }
542143
def _get_cache_key(self):
        

        keys = list(self.params.keys())
        keys.sort()

        cache_key = str()

        for key in keys:
            if key != "api_sig" and key != "api_key" and key != "sk":
                cache_key += key + self.params[key]

        return hashlib.sha1(cache_key.encode("utf-8")).hexdigest()
1192374
public function getStack($imploded = true)
    {
        return (bool) $imploded ? implode('.', $this->keystack) : $this->keystack;
    }
1248382
public function getHashLastBuilded(bool $buildIfNotFound = false): ?string
    {
        return $this->lastBuildedHash ?? ($buildIfNotFound ? $this->buildHash() : null);
    }
171432
public function get_repo_cache( $repo = false ) {
		if ( ! $repo ) {
			$repo = isset( $this->type->slug ) ? $this->type->slug : 'ghu';
		}
		$cache_key = 'ghu-' . md5( $repo );
		$cache     = get_site_option( $cache_key );

		if ( empty( $cache['timeout'] ) || time() > $cache['timeout'] ) {
			return false;
		}

		return $cache;
	}
464436
public function caching($bool = null)
	{
		if (is_bool($bool))
		{
			$this->_config['enable_cache'] = $bool;
			return $this;
		}
		return \Arr::get($this->_config, 'enable_cache', true);
	}
875368
public function getKey($field, $assoc = false)
    {
        return $assoc ? $this->get($assoc)[$field] : $this->get($assoc)->{$field};
    }
127173
public function key()
    {
        $key = key($this->container);
        if ($this->key_type === GPBType::BOOL) {
            // PHP associative array stores bool as integer for key.
            return boolval($key);
        } elseif ($this->key_type === GPBType::STRING) {
            // PHP associative array stores int string as int for key.
            return strval($key);
        } else {
            return $key;
        }
    }
117900
def get_bool(self, key, default=None):
        
        v = self.get(key, default)
        if v != default:
            v = v.strip().lower()
            if v == 'true':
                v = True
            elif v == 'false':
                v = False
            elif default is None:
                raise RuntimeError("invalid bool string: %s" % v)
            else:
                v = default
        return v
1320149
static function cachePath( $keyString, $nodeID = false )
    {
        $filename = md5( $keyString ) . ".cache";

        $phpDir = eZTemplateCacheBlock::templateBlockCacheDir();
        if ( is_numeric( $nodeID ) )
        {
            $phpDir .= eZTemplateCacheBlock::calculateSubtreeCacheDir( $nodeID, $filename );
        }
        else
        {
            $phpDir .= $filename[0] . '/' . $filename[1] . '/' . $filename[2];
        }

        $phpPath = $phpDir . '/' . $filename;
        return $phpPath;
    }
225306
public function exists($key)
	{
		if(!function_exists('apc_exists')) {
			$success = false;
			$this->fetch($key, $success);
			return $success;
		}
		
		return \apc_exists($key);
	}
1124637
public function getCacheKey()
    {
        if (is_null($this->cacheKey)) {
            return $this->cachePrefix . $this->getUserName();
        }

        return $this->cacheKey;
    }
224651
public function get_identifier() {
        static $instances = 0;
        if ($this->lockidentifier === null) {
            $this->lockidentifier = md5(
                $this->get_definition()->generate_definition_hash() .
                sesskey() .
                $instances++ .
                'cache_application'
            );
        }
        return $this->lockidentifier;
    }
1054678
public function getCacheByKey($cacheKey, $confCache, $getForce = false)
	{
	    // only when in front mode
	    if ($this->getRenderMode() != 'front' && !$getForce)
	        return null;
	    
	    $active = $this->isCacheConfActive($confCache);
	    if ($active)
	    {
	        $cache = $this->getServiceLocator()->get($confCache);

	        if ($cache->hasItem($cacheKey))
	        {
	            $itemValue = $cache->getItem($cacheKey);
	            return $itemValue;
	        }
	    }
	    
	    return null;
	}