Re: Store data temporarily

30 views
Skip to first unread message

Sebastián Gurin

unread,
Sep 12, 2012, 9:52:22 PM9/12/12
to google-we...@googlegroups.com
Hi; I'm not sure if this is what you need: http://yuilibrary.com/yui/docs/cache/ it support offline cache and use of html5 localstorage when possible.  This is an example using YUIGWT library:

http://cancerbero.mbarreneche.com/yuigwt/gallery/?test=cache1

    final Cache cache1 = Y.newCache(CacheConfig.create().max(5).expires(3600000)); 
    Y.newButton(ButtonConfig.create().label("Save").render(parent).on("click", new EventCallback() {      
      @Override
      public void call(EventFacade e) {
        cache1.add(cacheKey1, p.get("value")); 
      }
    })); 
    Y.newButton(ButtonConfig.create().label("Load").render(parent).on("click", new EventCallback() {      
      @Override
      public void call(EventFacade e) {
        p.set("value", cache1.retrieve(cacheKey1).responseString()); 
      }
    })); 


On Wednesday, September 12, 2012 7:27:46 PM UTC-3, More Programmer wrote:
Dear All:

Please can you help me, I need store data temporarily, I'm using GWT 2.4 to store data on a master- detail, ie from 1 to n, once introduced all newly detailed data will be stored for a single master.

Best Regards

Jacobo
Reply all
Reply to author
Forward
0 new messages