Enum ConnectionRequest.CachingMode

java.lang.Object
java.lang.Enum<ConnectionRequest.CachingMode>
com.codename1.io.ConnectionRequest.CachingMode
All Implemented Interfaces:
Serializable, Comparable<ConnectionRequest.CachingMode>
Enclosing class:
ConnectionRequest

public static enum ConnectionRequest.CachingMode extends Enum<ConnectionRequest.CachingMode>

There are 5 caching modes:

  • OFF is the default, meaning no caching.

  • SMART means all get requests are cached intelligently and caching is "mostly" seamless.

  • MANUAL means that the developer is responsible for the actual caching but the system will not do a request on a resource that's already "fresh".

  • OFFLINE will fetch data from the cache and wont try to go to the server. It will generate a 404 error if data isn't available.

  • OFFLINE_FIRST works the same way as offline but if data isn't available locally it will try to connect to the server.