org.apache.ibatis.annotations
Annotation Type CacheNamespace


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface CacheNamespace


Optional Element Summary
 Class<? extends Cache> eviction
           
 long flushInterval
           
 Class<? extends Cache> implementation
           
 boolean readWrite
           
 int size
           
 

implementation

public abstract Class<? extends Cache> implementation
Default:
org.apache.ibatis.cache.impl.PerpetualCache.class

eviction

public abstract Class<? extends Cache> eviction
Default:
org.apache.ibatis.cache.decorators.LruCache.class

flushInterval

public abstract long flushInterval
Default:
3600000L

size

public abstract int size
Default:
1000

readWrite

public abstract boolean readWrite
Default:
true


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.