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

        return paths[0]
    }

    init(name: String = defaultCacheName) {
        self.name = name + ".realm"
        self.realm = Realm(path: RealmCache.cachesDirectory() + name)
    }

        realm.invalidate()
    }

    public func objectForKey(key: String) -> AnyObject? {
        if let cacheObject = realm.objectForPrimaryKey(CacheObject.self, key: key) {
            if expired(cacheObject) {
                removeObjectForKey(key)
