setIsPersistable(boolean) method

This API sets the isPersistable property of the cache which is used to check if the cache is implicitly persistable.

Syntax

public void setIsPersistable ( boolean value ) throws CacheException

Parameters

Exceptions

Example 1


Try{
          ILogger logger = new  Logger();
          ICache cache =new Cache(getApplicationContext(),logger);
          cache.setIsPersistable(true);


}
Catch(CacheException e){
}