com.googlecode.objectify.impl
Class CacheControlImpl

java.lang.Object
  extended by com.googlecode.objectify.impl.CacheControlImpl
All Implemented Interfaces:
CacheControl

public class CacheControlImpl
extends java.lang.Object
implements CacheControl

Implements CacheControl for Objectify


Constructor Summary
CacheControlImpl(ObjectifyFactory fact)
           
 
Method Summary
 java.lang.Integer getExpirySeconds(com.google.appengine.api.datastore.Key key)
          Get the amount of time that entities of a particular key should be cached, if at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheControlImpl

public CacheControlImpl(ObjectifyFactory fact)
Method Detail

getExpirySeconds

public java.lang.Integer getExpirySeconds(com.google.appengine.api.datastore.Key key)
Description copied from interface: CacheControl
Get the amount of time that entities of a particular key should be cached, if at all. This is used both to write entities/negative results to the cache and also to determine if we should look in the cache in the first place.

Specified by:
getExpirySeconds in interface CacheControl
Returns:
null means DO NOT CACHE. 0 means "no limit". Any other value is a # of seconds.


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