Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* ********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2012 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/
package com.backendless;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.async.message.AsyncMessage;
import com.backendless.cache.CacheService;
import com.backendless.cache.ICache;
import com.backendless.core.ResponseCarrier;
import com.backendless.core.responder.AdaptingResponder;
import com.backendless.core.responder.policy.PoJoAdaptingPolicy;
import com.backendless.exceptions.BackendlessException;
import com.backendless.exceptions.BackendlessFault;
import com.backendless.utils.ReflectionUtil;
import weborb.client.IChainedResponder;
import weborb.types.IAdaptingType;
import weborb.util.io.ISerializer;
import java.lang.reflect.Type;
import java.util.Date;
public class Cache
{
private final static String CACHE_SERVER_ALIAS = "com.backendless.services.redis.CacheService";
private final static Cache instance = new Cache();
static Cache getInstance()
{
return instance;
}
private Cache()
{
}
public ICache with( String key, Class extends T> type )
{
return new CacheService( type, key );
}
public void put( String key, Object object, int timeToLive, AsyncCallback