public CommandCache getCommandCache ( String cacheName ) throws DynamicCacheServiceNotStarted , IllegalStateException { if ( servletCacheUnit == null ) { throw new DynamicCacheServiceNotStarted ( "Servlet cache service has not been started." ) ; } return servletCacheUnit . getCommandCache ( cacheName ) ; }
This implements the method in the CacheUnit interface . This is called to get Command Cache object .