Package net.sf.ehcache.store

Examples of net.sf.ehcache.store.LruMemoryStore


            }

            this.diskStore = createDiskStore();

            if (useClassicLru && configuration.getMemoryStoreEvictionPolicy().equals(MemoryStoreEvictionPolicy.LRU)) {
                memoryStore = new LruMemoryStore(this, diskStore);
            } else {
                memoryStore = MemoryStore.create(this, diskStore);
            }
            changeStatus(Status.STATUS_ALIVE);
            initialiseRegisteredCacheExtensions();
View Full Code Here


                }
            } else {
                if (useClassicLru && configuration.getMemoryStoreEvictionPolicy().equals(MemoryStoreEvictionPolicy.LRU)) {
                    Store disk = createDiskStore();
                    store = makeXaStrictTransactionalIfNeeded(new LegacyStoreWrapper(
                            new LruMemoryStore(this, disk), disk, registeredEventListeners, configuration), copyStrategy);
                } else {
                    if (configuration.isDiskPersistent()) {
                        store = makeXaStrictTransactionalIfNeeded(DiskPersistentStore.create(this, diskStorePath), copyStrategy);
                    } else if (configuration.isOverflowToDisk()) {
                        store = makeXaStrictTransactionalIfNeeded(OverflowToDiskStore.create(this, diskStorePath), copyStrategy);
View Full Code Here

TOP

Related Classes of net.sf.ehcache.store.LruMemoryStore

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.