public static void main ( String [ ] args ) { try { VBucketInfo vbi [ ] = new VBucketInfo [ 1024 ] ; for ( int ii = 0 ; ii < vbi . length ; ++ ii ) { vbi [ ii ] = new VBucketInfo ( ) ; } MemcachedServer server = new MemcachedServer ( null , null , 11211 , vbi , false ) ; for ( VBucketInfo aVbi : vbi ) { aVbi . setOwner ( server ) ; } server . run ( ) ; } catch ( IOException e ) { Logger . getLogger ( MemcachedServer . class . getName ( ) ) . log ( Level . SEVERE , "Fatal error! failed to create socket: " , e ) ; } }
Program entry point that runs the memcached server as a standalone server just like any other memcached server ...