com.googlecode.objectify.annotation.Cached Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Place this on any POJO entity class to cause it to be cached in the memcache.
*
* @author Jeff Schnitzer
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Cached
{
/**
* 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.
*/
int expirationSeconds() default 0;
}