                 result.uid = aID
                 
                 //var key = NSNumber(long: uid)
-                //self.cache.setObject(result, forKey: key)
+                self.cache.setObject(result, forKey: aID)
             }
         }
         

    public func deleteObject(aObj: O) {
        
        if aObj.uid != nil {
            //cache.removeObjectForKey(aObj.uid!)
            self.deleteBlock(aObj.uid!)
            aObj.uid = nil;
        }

        aObj.dirty = false
        
        //var key = NSNumber(long: uid)
        cache.setObject(aObj, forKey: uid)
        
        return uid
    }
