         }
     }
     
+    //---------------------------------------------------------------------------------------------------------
+    //MARK: Cache Controll
+    //---------------------------------------------------------------------------------------------------------
+    
+    public func removeAllObjectsForCache() {
+        cache.removeAllObjects()
+    }
+    
+    
 }
        sampleData.uid = 0
        self.writeData(sampleData.data)
    }
    
    public func registerObject(aObj: O) -> UID? {
        

public class ObjectStore<O: Coding> : DataStore<ObjectStoreHeader,O.DataType> {
    
    let cache = NSCache() //SOTypedCache<O>()
    
    //---------------------------------------------------------------------------------------------------------
    //MARK: DataStore
    //---------------------------------------------------------------------------------------------------------
    
    public override init(url: NSURL) {
        super.init(url: url)
