/** * Initializes the page store. */ private void initPageStore() { //pf.configuration.web.cachedPagesPerSession", 10); getStoreSettings().setInmemoryCacheSize(10); // Set custom page store setPageManagerProvider(new DefaultPageManagerProvider(this) { @Override protected IPageStore newPageStore(IDataStore dataStore) { return new InMemoryPageStore(); } }); }
@Override public void init(WebApplication webApplication) { StoreSettings storeSettings = webApplication.getStoreSettings(); if (props.getAsynchronous() != null) { storeSettings.setAsynchronous(props.getAsynchronous()); } if (props.getAsynchronousQueueCapacity() != null) { storeSettings.setAsynchronousQueueCapacity(props.getAsynchronousQueueCapacity()); } if (props.getFileStoreFolder() != null) { storeSettings.setFileStoreFolder(new File(props.getFileStoreFolder())); } if (props.getInmemoryCacheSize() != null) { storeSettings.setInmemoryCacheSize(props.getInmemoryCacheSize()); } storeSettings.setMaxSizePerSession(TypeParser.parse(props.getSessionSize(), props.getSessionUnit())); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
@Override public void init(WebApplication webApplication) { StoreSettings storeSettings = webApplication.getStoreSettings(); if (props.getAsynchronous() != null) { storeSettings.setAsynchronous(props.getAsynchronous()); } if (props.getAsynchronousQueueCapacity() != null) { storeSettings.setAsynchronousQueueCapacity(props.getAsynchronousQueueCapacity()); } if (props.getFileStoreFolder() != null) { storeSettings.setFileStoreFolder(new File(props.getFileStoreFolder())); } if (props.getInmemoryCacheSize() != null) { storeSettings.setInmemoryCacheSize(props.getInmemoryCacheSize()); } storeSettings.setMaxSizePerSession(TypeParser.parse(props.getSessionSize(), props.getSessionUnit())); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
getStoreSettings().setInmemoryCacheSize(1000);