public class EntityMemcache.Bucket extends Object
Constructor and Description |
---|
Bucket(com.google.appengine.api.datastore.Key key)
Crate a bucket with an uncacheable key.
|
Bucket(com.google.appengine.api.datastore.Key key,
com.google.appengine.api.memcache.MemcacheService.IdentifiableValue iv) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.google.appengine.api.datastore.Entity |
getEntity()
Get the entity stored at this bucket, possibly the one that was set
|
com.google.appengine.api.datastore.Key |
getKey() |
int |
hashCode() |
boolean |
isCacheable() |
boolean |
isEmpty()
"Empty" means we don't know the value - it could be null, it could be uncacheable, or we could have some
really weird unknown data in the cache.
|
boolean |
isNegative() |
void |
setNext(com.google.appengine.api.datastore.Entity value)
Prepare the value that will be set in memcache in the next putAll().
|
public Bucket(com.google.appengine.api.datastore.Key key)
public Bucket(com.google.appengine.api.datastore.Key key, com.google.appengine.api.memcache.MemcacheService.IdentifiableValue iv)
iv
- can be null to indicate an uncacheable keypublic com.google.appengine.api.datastore.Key getKey()
public boolean isCacheable()
public boolean isNegative()
public boolean isEmpty()
public com.google.appengine.api.datastore.Entity getEntity()
public void setNext(com.google.appengine.api.datastore.Entity value)
Copyright © 2016. All rights reserved.