1 package com
.google
.appengine
.api
.datastore
;
4 * Specifies whether the entity associated with the {@link Key} is eligible for caching.
6 abstract class EntityCachingCriteria
{
9 * Returns that every entity is cacheable.
11 public static final EntityCachingCriteria ALL_KEYS
= new EntityCachingCriteria() {
13 public boolean isCacheable(Key key
) {
19 * Returns whether the entity associated with the {@code key} is eligible for caching.
21 * @param key the entity {@link Key} to check.
22 * @return {@code true} if the entity with the specified {@code key} is cacheable.
23 * {@code false} otherwise.
25 public abstract boolean isCacheable(Key key
);