Sort-of-working statcache implementation.
[cumulus.git] / localdb.h
index 3f5e5ba..4654b37 100644 (file)
--- a/localdb.h
+++ b/localdb.h
@@ -27,6 +27,7 @@ public:
                      const std::string &checksum, int64_t size, double age);
     ObjectReference FindObject(const std::string &checksum, int64_t size);
     bool IsOldObject(const std::string &checksum, int64_t size, double *age);
+    bool IsAvailable(const ObjectReference &ref);
     void UseObject(const ObjectReference& ref);
 private:
     sqlite3 *db;