com.avaje.ebean.annotation
Annotation Type CacheTuning


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

Specify cache tuning for a specific entity type.

If this is not specified then the system default settings are used.


Optional Element Summary
 int maxIdleSecs
          The maximum time (in seconds) that a cache entry is allowed to stay in the cache when it has not been accessed.
 int maxSecsToLive
          The maximum time (in seconds) a cache entry is allowed to stay in the cache.
 int maxSize
          The maximum size for the cache.
 

maxSize

public abstract int maxSize
The maximum size for the cache.

This defaults to 0 which means unlimited.

Default:
0

maxIdleSecs

public abstract int maxIdleSecs
The maximum time (in seconds) that a cache entry is allowed to stay in the cache when it has not been accessed.

This defaults to 0 which means unlimited.

Default:
0

maxSecsToLive

public abstract int maxSecsToLive
The maximum time (in seconds) a cache entry is allowed to stay in the cache.

This is not generally required as the cache entries are automatically evicted when related data changes are committed.

This defaults to 0 which means unlimited.

Default:
0


Copyright © 2010. All Rights Reserved.