public function get($key)
    {
        if (!isset($this->records[$key])) {
            return null;
        }

        $record = $this->records[$key];

        if ($record['expire'] < time()) {
            unset($this->records[$key]);

            return null;
        }

        return $record['nodes'];
    }
public function get($key)
    {
        if (!isset($this->records[$key])) {
            return null;
        }

        $record = $this->records[$key];

        if ($record['expire'] < time()) {
            unset($this->records[$key]);

            return null;
        }

        return $record['nodes'];
    }
public function get ( $ key ) { if ( ! isset ( $ this -> records [ $ key ] ) ) { return null ; } $ record = $ this -> records [ $ key ] ; if ( $ record [ 'expire' ] < time ( ) ) { unset ( $ this -> records [ $ key ] ) ; return null ; } return $ record [ 'nodes' ] ; }
Retrieve the nodes under the given key.

@param string $key

@return string[]
Retrieve the nodes under the given key .