|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sue445.kulib.util.CompressMemcacheUtil
public final class CompressMemcacheUtil
put a compressed serialize object to Memcache
note: this util is not support hot reloading
| Method Summary | ||
|---|---|---|
static byte[] |
compress(byte[] src)
compress binary |
|
static
|
deserialize(byte[] src)
deserialize to object |
|
static
|
get(Object key)
get a compressed object from Memcache |
|
static void |
put(Object key,
Object src)
put a compressed object to Memcache |
|
static void |
put(Object key,
Object src,
com.google.appengine.api.memcache.Expiration expiration)
put a compressed object to Memcache |
|
static byte[] |
serialize(Object src)
serialize a object |
|
static byte[] |
uncompress(byte[] src)
uncompress binary |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void put(Object key,
Object src)
key - src -
public static void put(Object key,
Object src,
com.google.appengine.api.memcache.Expiration expiration)
key - src - expiration -
public static byte[] serialize(Object src)
throws IOException
src - a object
IOException
public static byte[] compress(byte[] src)
throws IOException
src - uncompressed binary
IOExceptionpublic static <T> T get(Object key)
key -
public static byte[] uncompress(byte[] src)
throws IOException
src - compressed binary
IOException
public static <T> T deserialize(byte[] src)
throws IOException,
ClassNotFoundException
src - serialized binary
ClassNotFoundException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||