com.googlecode.objectify.annotation
Annotation Type Cached


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

Place this on any POJO entity class to cause it to be cached in the memcache.

Author:
Jeff Schnitzer

Optional Element Summary
 int expirationSeconds
          Number of seconds after which the cached copy should be expired; the default value (0) is "keep as long as possible".
 

expirationSeconds

public abstract int expirationSeconds
Number of seconds after which the cached copy should be expired; the default value (0) is "keep as long as possible". This is not a guarantee; the memcache can be wiped at any time due to memory pressure or the whim of Google's operations team.

Default:
0


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1