com.spoledge.audao.db.dao.gae
Class MemcacheDtoCacheFactoryImpl<K,V>

java.lang.Object
  extended by com.spoledge.audao.db.dao.gae.MemcacheDtoCacheFactoryImpl<K,V>
All Implemented Interfaces:
DtoCacheFactory<K,V>

public class MemcacheDtoCacheFactoryImpl<K,V>
extends java.lang.Object
implements DtoCacheFactory<K,V>

This is a DtoCacheFactory which uses MemcacheService caches.


Constructor Summary
MemcacheDtoCacheFactoryImpl(java.lang.String name)
          Creates a new factory.
 
Method Summary
 DtoCache<K,V> createDtoCache(int maxSize)
          Creates a cache with no expiration policy.
 DtoCache<K,V> createDtoCache(long expireMillis, int maxSize)
          Creates a cache with expiration policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcacheDtoCacheFactoryImpl

public MemcacheDtoCacheFactoryImpl(java.lang.String name)
Creates a new factory.

Method Detail

createDtoCache

public DtoCache<K,V> createDtoCache(int maxSize)
Creates a cache with no expiration policy.

Specified by:
createDtoCache in interface DtoCacheFactory<K,V>

createDtoCache

public DtoCache<K,V> createDtoCache(long expireMillis,
                                    int maxSize)
Creates a cache with expiration policy.

Specified by:
createDtoCache in interface DtoCacheFactory<K,V>


Copyright © 2010 Spolecne s.r.o. All Rights Reserved.