+ (when (and expired expire-time)
+ (url-store-in-cache buffer))
+ buffer))
+
+(defun google-weather-retrieve-data (url &optional expire-time)
+ "Retrieve URL and return its data as string.
+If EXPIRE-TIME is set, the data will be fetched from the cache if
+their are not older than EXPIRE-TIME seconds. Otherwise, they
+will be fetched and then cached. Therefore, setting EXPIRE-TIME
+to 0 force a cache renewal."
+ (with-current-buffer (google-weather-retrieve-data-raw
+ url expire-time)