com.googlecode.objectify.annotation.Cache 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
The simplest convenient interface to the Google App Engine datastore
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 Cache
{
/**
* 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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy