         }
     }
 
-    func removeAllObjects() {
+    public func removeAllObjects() {
         realm.write { [unowned self] in
             self.realm.deleteAll()
         }

        }
    }

    func removeObjectForKey(key: String) {
        if let cacheObject = realm.objectForPrimaryKey(CacheObject.self, key: key) {
            realm.write { [unowned self] in
                self.realm.delete(cacheObject)

        return false
    }

    public func pruneExpired() {
        let results = realm.objects(CacheObject).filter("expiresIn != 0")
        for cacheObject in results {
            if expired(cacheObject) {
