首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 客户端GWT RPC服务缓存

客户端GWT RPC服务缓存

  • 资源大小:19.57 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 缓存 客户端 gwtrpc 服务

资 源 简 介

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
VIP VIP
0.181948s