Package net.sf.ehcache.store.compound.factories

Examples of net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory


     * @param diskStorePath disk path to store data in
     * @return a fully initialized store
     */
    public static DiskPersistentStore create(Cache cache, String diskStorePath) {
        CacheConfiguration config = cache.getCacheConfiguration();
        DiskPersistentStorageFactory disk = new DiskPersistentStorageFactory(cache, diskStorePath);
        DiskPersistentStore store = new DiskPersistentStore(disk, config);
        cache.getCacheConfiguration().addConfigurationListener(store);
        return store;
    }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.