gitweb/lib - Add clear() and size() methods to caching interface