diff --git a/examples/simple_cachedump.js b/examples/simple_cachedump.js index 85faebb..abfb08c 100644 --- a/examples/simple_cachedump.js +++ b/examples/simple_cachedump.js @@ -15,11 +15,11 @@ memcached.items( function( err, result ){ keys.forEach(function( stats ){ // get a cachedump for each slabid and slab.number - memcached.cachedump( itemSet.server, stats, itemSet[stats].number, function( err, response ){ + memcached.cachedump( itemSet.server, parseInt(stats), itemSet[stats].number, function( err, response ){ // dump the shizzle console.info( JSON.stringify( response ) ); console.log( response.key ); }) }) }) -}); \ No newline at end of file +});