Package org.shiftone.cache.policy.single

Examples of org.shiftone.cache.policy.single.SingleCacheFactory


            new MapCache(new LRUCache(KEY_COUNT)),                                    //
            new SwarmCache(KEY_COUNT),                                                //
            new JcsCache(),                                                           //
            new EHCacheCache("test"),                                                 //
            new ZeroCacheFactory().newInstance("zero", TIMEOUT_MS, KEY_COUNT),        //
            new SingleCacheFactory().newInstance("single", TIMEOUT_MS, KEY_COUNT),    //
            new FifoCacheFactory().newInstance("fifo", TIMEOUT_MS, KEY_COUNT),        //
            new LruCacheFactory().newInstance("lru", TIMEOUT_MS, KEY_COUNT),          //
            new LfuCacheFactory().newInstance("lfu", TIMEOUT_MS, KEY_COUNT),          //
            OroCache.createFIFO(KEY_COUNT),                                           //
            OroCache.createFIFO2(KEY_COUNT),                                          //
View Full Code Here


    public void testProxy() throws Exception
    {

        List         list    = new ArrayList();
        CacheFactory factory = new SingleCacheFactory();
        Cache        cache   = factory.newInstance("proxyTest", 1000, 1);
        List         plist   = (List) CacheProxy.newProxyInstance(list, List.class, cache);

        System.out.println(plist.size());
        System.out.println(plist.add("test1"));
        System.out.println(plist.add("test2"));
View Full Code Here

TOP

Related Classes of org.shiftone.cache.policy.single.SingleCacheFactory

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.