     }
     return nil
   }
-    
+  
   func cacheSet(url:NSURL,image:UIImage) {
     if cache.count < 10 {
       cache.append(cacheImage(image: image, timeStump: now, url: url))

  }
  
  var cache : [cacheImage] = []

  func cacheRead(url: NSURL) -> UIImage? {
    for var i=0; i<cache.count; i++ {
      if url == cache[i].url {

}

class PIImageCache {
  
  struct cacheImage {
    let image     :UIImage
    var timeStump :Double
    let url       :NSURL
  }
  
  var now: Double {
    get {
      return NSDate().timeIntervalSince1970
