Dustin H

Results 48 comments of Dustin H

The main issue was with Filesystem.Reload which needs to produce the key from the name. That being said, I might be able to drop that for a Filesystem impl depending...

I think the main problem is that things like expiration run over all the keys, and we don't know what all the keys are if we can't reload them. But...

@deluan I took a quick look, I think the problem is that your Reload method returns different keys than were passed to Create. This means when you call cache.Get with...

From a very brief look at your updates, I think your FS should work (through testing is of course the best way to verify). Key mapping does already happen in...

I pushed some changes which should allow this kind of control, dumb [example in the tests](https://github.com/djherbis/fscache/blob/master/fscache_test.go#L50). I'll expand a bit here: ``` // Create the FileSystem which doesn't mess with...

^ note I think your new FS is just a special case of this, if you want to remove the keyfiles you can just do this but set your KeyMapper...

@amozoss Is this working for you now? Any more issues? If its working I might tag a new release with this feature fixed.

So I've run into a bit of a blocking problem. I started looking to http.ServeContent and it uses some trickery in io.Seeker. It seeks to the "end" using io.Seek(0, os.SEEK_END)....

Hey, yeah it seems like we're solving pretty similar problems. Are you running into the io.Seek(0, os.SEEK_END) problem as well? We can't really seek to the "end" of the stream...

I've added a Size() method to Stream() which allows you to inspect the current stream size, and see if the stream is closed. If it's closed, then the size will...