From 51c5bfa4881b5def142092e10dd402fd40e2e712 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 4 May 2010 17:07:07 +0000 Subject: Cache fixes? --- src/tests/cache.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/tests') diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index 3470ecb..7fe660a 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp @@ -160,6 +160,15 @@ public: delete pObj; } + virtual void destroy( const long &key ) + { + TRACE( pObj, key ); + Bu::FString sDest; + sDest.format("bobcache/%d", key ); + if( !access( sDest.getStr(), F_OK ) ) + unlink( sDest.getStr() ); + } + private: long cLastId; }; @@ -187,6 +196,10 @@ public: { } + virtual void onDestroy( const long & ) + { + } + virtual bool shouldSync( Bob *, const long &, time_t ) { return false; -- cgit v1.2.3