       return false
     })
     
-    for (i, v) in enumerate(sortedContents) {
-      var stop : Bool = false
-      block(v, i, &stop)
-      if stop { break }
+    for value in sortedContents {
+      var stop = false
+      block(value, &stop)
+      if stop {
+        break
+      }
     }
   }
 }
  }
  
  private lazy var cacheQueue : dispatch_queue_t = {
    let queueName = CarlosGlobals.QueueNamePrefix + self.path.lastPathComponent
    let cacheQueue = dispatch_queue_create(queueName, nil)
    return cacheQueue
  }()
  
  public func onMemoryWarning() {}

  
  private func removeData(key : String) {
    dispatch_async(cacheQueue, {
      self.removeFileAtPath(self.pathForKey(key))
    })
  }
  
  public func clear() {
    dispatch_async(cacheQueue, {
      if let contents = self.fileManager.contentsOfDirectoryAtPath(self.path, error: nil) as? [String] {
        for pathComponent in contents {
          let filePath = self.path.stringByAppendingPathComponent(pathComponent)
          self.fileManager.removeItemAtPath(filePath, error: nil)
        }
        self.calculateSize()
      }
    })
  }
  
  private func updateAccessDate(@autoclosure(escaping) getData: () -> NSData?, key : String) {
    dispatch_async(cacheQueue, {
      let path = self.pathForKey(key)
      if !self.updateDiskAccessDateAtPath(path) && !self.fileManager.fileExistsAtPath(path) {
