original_string: public function get($key) {
  		$entry = null;
  
  		if (isset($this->items[$key])) {
  			$entry = $this->items[$key];
  		} else {
  			$data = $this->store->get($key);
  			if ($data) {
  				$entry = unserialize($data);
  			}
  		}
  
  		if (!$entry) {
  			return $entry;
  		}
  
  
  		// if the expire time is in the future
  		if ($entry->expireAt > time()) {
  			return unserialize($entry->value);
  		}
  
  
  		// if we got to here, we need to expire the value
  		$this->expire($key);
  		return null;
  	}
code: public function get($key) {
  		$entry = null;
  
  		if (isset($this->items[$key])) {
  			$entry = $this->items[$key];
  		} else {
  			$data = $this->store->get($key);
  			if ($data) {
  				$entry = unserialize($data);
  			}
  		}
  
  		if (!$entry) {
  			return $entry;
  		}
  
  
  		// if the expire time is in the future
  		if ($entry->expireAt > time()) {
  			return unserialize($entry->value);
  		}
  
  
  		// if we got to here, we need to expire the value
  		$this->expire($key);
  		return null;
  	}
code_tokens: public function get ( $ key ) { $ entry = null ; if ( isset ( $ this -> items [ $ key ] ) ) { $ entry = $ this -> items [ $ key ] ; } else { $ data = $ this -> store -> get ( $ key ) ; if ( $ data ) { $ entry = unserialize ( $ data ) ; } } if ( ! $ entry ) { return $ entry ; } // if the expire time is in the future if ( $ entry -> expireAt > time ( ) ) { return unserialize ( $ entry -> value ) ; } // if we got to here, we need to expire the value $ this -> expire ( $ key ) ; return null ; }
docstring: Gets a cached value for a given key
  @param String $key
  The key to retrieve data for
docstring_tokens: Gets a cached value for a given key