forked from andoma/movian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite blobcache to use sqlite as backend store. Add support for conditional gets in HTTP client (both modification time and etag).
- Loading branch information
Showing
22 changed files
with
524 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE item ( | ||
stash TEXT, | ||
k TEXT, | ||
lastaccess INTEGER, | ||
expiry INTEGER, | ||
modtime INTEGER, | ||
etag TEXT, | ||
payload BLOB, | ||
UNIQUE(k, stash) ON CONFLICT FAIL); | ||
|
||
CREATE INDEX item_key_idx ON item(stash, k); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.