From 88b3a5acf78aa9a2d73f2462e45988f5afb9d2c5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 24 Feb 2009 01:23:11 +0000 Subject: Woot, the cache system now supports intellegent sync'ing. It will ask the cache about each object that it has and weather or not to sync it. This will probably be made optional in the future. --- src/tests/cache.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/tests/cache.cpp') diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index 323edda..8d95a9d 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp @@ -96,6 +96,19 @@ public: f.write( s ); } + virtual void sync( Bob *, const long & ) + { + } + + virtual void sync() + { + } + + virtual bool has( const long & ) + { + return true; + } + virtual Bob *load( const long &key ) { TRACE( key ); @@ -156,6 +169,10 @@ public: { } + virtual bool shouldSync( Bob *, const long &, time_t ) + { + } + private: }; -- cgit v1.2.3