cassette
cassette copied to clipboard
An efficient, file-based FIFO Queue for iOS and macOS.
A few changes to make Cassette a bit more Swift-friendly.
Fortesting
`CASQueueFile` writes its header to a [a temporary `commitFile`](https://github.com/linkedin/cassette/blob/fc545125a481dcafa9cde96ed151d811d5855d93/Cassette/CASQueueFile.m#L564) with comments suggesting it should try and recover from failure when updating the metadata header. This logic [does not exist in...
Adding onto Rich's PR: https://github.com/linkedin/cassette/pull/24 Raised exceptions where the range was out of bounds. Let me know if you'd rather error another way
Protects crashes on reading and writing of buffer if range is accessed beyond buffer size.
In the following circumstances: * when expanding the database file during an `add`, and * when an existing entry is wrapped around the end of the database file (since this...
If we want the library to not be involved with folder management, file management, and want to require users to create intermediary directories themselves, having the relativePath option no longer...
the size of the database file maxes out at 4.26gb or roughtly 4,294,967,295 bytes because of storing `_fileLength` as unsigned int
Instead of writing to the main file, we should create a backup, write to it and then copy it over.