Differences From Artifact [2fbc0cdff7]:
- File appfsd.tcl — part of check-in [222e571ce8] at 2014-09-18 17:49:14 on branch trunk — Added SQLite indexes to tables for faster lookup (user: rkeene, size: 8067) [annotate] [blame] [check-ins using]
To Artifact [6a56c0db7f]:
- File appfsd.tcl — part of check-in [6bae3dde7d] at 2014-11-03 22:31:54 on branch trunk — Updated to rely upon "sha1" package to compute hashes (user: rkeene, size: 8100) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 | + |
#! /usr/bin/env tclsh
package require http 2.7
package require sqlite3
package require sha1
namespace eval ::appfs {
variable cachedir "/tmp/appfs-cache"
variable ttl 3600
variable nttl 60
proc _hash_sep {hash {seps 4}} {
|
| ︙ | |||
43 44 45 46 47 48 49 50 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + - + - |
} else {
set ncode "900"
}
close $fd
if {$keyIsHash} {
set hash "__UNABLE_TO_COMPUTE_HASH__"
catch {
|
| ︙ |