diff options
Diffstat (limited to '')
-rw-r--r-- | src/tests/cache.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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: | |||
160 | delete pObj; | 160 | delete pObj; |
161 | } | 161 | } |
162 | 162 | ||
163 | virtual void destroy( const long &key ) | ||
164 | { | ||
165 | TRACE( pObj, key ); | ||
166 | Bu::FString sDest; | ||
167 | sDest.format("bobcache/%d", key ); | ||
168 | if( !access( sDest.getStr(), F_OK ) ) | ||
169 | unlink( sDest.getStr() ); | ||
170 | } | ||
171 | |||
163 | private: | 172 | private: |
164 | long cLastId; | 173 | long cLastId; |
165 | }; | 174 | }; |
@@ -187,6 +196,10 @@ public: | |||
187 | { | 196 | { |
188 | } | 197 | } |
189 | 198 | ||
199 | virtual void onDestroy( const long & ) | ||
200 | { | ||
201 | } | ||
202 | |||
190 | virtual bool shouldSync( Bob *, const long &, time_t ) | 203 | virtual bool shouldSync( Bob *, const long &, time_t ) |
191 | { | 204 | { |
192 | return false; | 205 | return false; |