Skip to content

Releases: djherbis/fscache

Go module support

25 Apr 15:11
c446dae
Compare
Choose a tag to compare
v0.11

add go.mod, go mod tidy

Fix alignment issues on amd32

15 Apr 01:00
6707f14
Compare
Choose a tag to compare

Related to golang/go#599 embedded structs act as if their fields were inlined in their parent, this means that alignment issues with fields propagate to embeddings. Therefore embeddings with atomic alignment at the top of the struct, also must be embedded at the top of their parent struct.

See 6707f14.

Exposing FSCache, CacheReader, add CacheReader.Size

22 Feb 21:51
d81755d
Compare
Choose a tag to compare

Should help with #6 and #16, see the latter for an example of how this can be roughly used for range-requests once a file is cached.

This includes some light breaking changes, mainly in that we changed the return value of the New* functions to return a concrete type instead of an interface. The concrete type still implements the original interface, so this should only break usages which were passing the package-level New functions themselves.

LRU Cache

04 Feb 15:12
287ea9b
Compare
Choose a tag to compare

Big thanks to @wolfrace for contributing this change.

Note there are some breaking interface changes, but since we're pre-1.0 that's to be expected.

#14

Bug Fix: Filesystem Cache not re-usable

31 Oct 21:52
6681963
Compare
Choose a tag to compare

#13 @T4cC0re noticed that the filesystem cache stopped working after calling Clean(), in this release, it should continue to work after Clean().

ReaderAt Support

05 Mar 18:32
Compare
Choose a tag to compare

ReaderAt is now supported by fscache! Thanks to @amozoss for all his work switching the back-end to use stream.

v0.7.0

07 Feb 06:59
Compare
Choose a tag to compare

Working, but needs some cleanup. API design will need some refactoring.