Releases: djherbis/fscache
Releases · djherbis/fscache
Go module support
Fix alignment issues on amd32
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
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.