diff options
Diffstat (limited to 'src/tests/cache.cpp')
-rw-r--r-- | src/tests/cache.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index bacd7fc..323edda 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp | |||
@@ -168,7 +168,7 @@ int main( int argc, char *argv[] ) | |||
168 | 168 | ||
169 | if( argc < 3 ) | 169 | if( argc < 3 ) |
170 | { | 170 | { |
171 | printf("Try: %s [crud] [<id/value>]\n\n", argv[0] ); | 171 | printf("Try: %s [crudl] [<id/value>]\n\n", argv[0] ); |
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
@@ -203,6 +203,15 @@ int main( int argc, char *argv[] ) | |||
203 | cBob.erase( strtol( argv[2], NULL, 0 ) ); | 203 | cBob.erase( strtol( argv[2], NULL, 0 ) ); |
204 | } | 204 | } |
205 | return 0; | 205 | return 0; |
206 | |||
207 | case 'l': | ||
208 | { | ||
209 | BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) ); | ||
210 | printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); | ||
211 | printf("Value = %d\n", pBob->getInt() ); | ||
212 | printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); | ||
213 | } | ||
214 | return 0; | ||
206 | } | 215 | } |
207 | 216 | ||
208 | } | 217 | } |