资 源 简 介
GWT Client Side Caching
by Joey K. Black
This is a client (browser) side caching library that can be used with
GWT RPC services.
The library uses a custom generator to wrap calls to your RPC service and cache the results on the client (browser) side. See jkb.gwt.client.cache.shared.Cache for more caching options.
To make your service cached:
Add jkb-gwt-client-cache.jar to your GWT project (see downloads)
Add the following to your gwt.xml file:
On your GWT RPC service synchronous interface extend:
jkb.gwt.client.cache.shared.ICacheable
Add the @Cache annotation to any method you would like
to have cached.
Example:
```
import jkb.gwt.client.cache.shared.Cache;
import jkb.gwt.client.cache.shared.ICacheable;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.use