Returns true if the item is locked.

@param string $name

@return boolean
968492
public function isLocked($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return isset($this->locked[$name]);
    }
217535
public function rm(string $name): bool
    {
        $this->writeTimes++;

        try {
            return $this->unlink($this->getCacheKey($name));
        } catch (\Exception $e) {
            return false;
        }
    }
1183642
public function isProtected($name)
    {
        return (bool) (
            $this->_services_protected->offsetExists($name) &&
            $this->_services_protected->offsetGet($name)===true
        );
    }
108378
public function hasBlocks($name)
    {
        return isset($this->__blocks[$name]) && !empty($this->__blocks[$name]);
    }
208625
public function releaseLock($name)
    {
        if (isset($this->locks[$name]) && $this->memcached->delete($name)) {
            unset($this->locks[$name]);

            return true;
        }

        return false;
    }
806038
protected function isItemNameValid($name)
    {
        $length = strlen($name);

        if ($length > 2147483648) {
            throw new \RuntimeException(sprintf('The Redis item key "%s" is too long (%s bytes). Allowed maximum size is 2^31 bytes.', $name, $length));
        }

        return true;
    }
402986
public static function exists($name)
    {
        static::isOn(true);

        if (!isset(static::$register[$name])) {
            return false;
        } else {
            $item = static::$register[$name];

            return $item['lifetime'] > time() || $item['lifetime'] == 0;
        }
    }
1066589
public function hasIndex($name)
    {
        $indexes = $this->getIndexes();

        foreach ($indexes as $index) {
            if ($index->Key_name == $name) {
                return true;
            }
        }

        return false;
    }
1219491
private static function lockProcess($name)
    {
        $fileName = static::getLockFileName($name);
        $fp = fopen($fileName, 'w+');
        if(false === $fp)
        {
            return false;
        }
        if(!flock($fp, LOCK_EX | LOCK_NB))
        {
            fclose($fp);
            return false;
        }
        static::$lockMap[$name] = [
            'fileName'  => $fileName,
            'fp'        => $fp,
        ];
        return true;
    }
1274701
public function hasConstant($name) {
        $hasConstant = false;
        if(array_key_exists($name, $this->getConstants())) {
            $hasConstant = true;
        }

        return $hasConstant;
    }
234833
public function clearLock($name)
    {
        if (!isset($this->locks[$name])) {
            return false;
        }

        unset($this->locks[$name]);
        return true;
    }
1274246
public function __isset($name)
    {
        if ($this->thawedObject === null) {
            if ($name === $this->storage->getFreezer()->getIdProperty()) {
                return true;
            }
        }

        return isset($this->replaceProxy(2)->{$name});
    }
228575
public function __isset($name)
    {
        switch ($name) {
            case 'rawValue':
                return ($this->rawValue !== null);
                break;
            case 'value':
                return ($this->value !== null);
                break;
            //return true;
        }
        return false;
    }
275524
public function __isset( $name )
    {
        return ( isset( $this->properties[$name] ) || isset( $this->storageOptions->$name ) );
    }
981094
public function hasRole($name)
    {
        foreach ($this->roles as $role)
        {
            if ($role->name == $name) return true;
        }
        return false;
    }
1180868
public function __isset($name)
    {
        try {
            $this->__get($name);
        } catch (InvalidArgumentException | ReflectionException $e) {
            return false;
        }

        return true;
    }
1346556
public function __isset($name)
    {
        $isset = false;
        if (!empty($name)) {
            $isset = array_key_exists($name, $this->arguments);
        }
        return $isset;
    }