Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public enum ConnectionRequest.CachingMode
- Object
- Enum<ConnectionRequest.CachingMode>
- ConnectionRequest.CachingMode
There are 5 caching modes:
OFFis the default, meaning no caching.SMARTmeans all get requests are cached intelligently and caching is “mostly” seamless.MANUALmeans that the developer is responsible for the actual caching but the system will not do a request on a resource that’s already “fresh”.OFFLINEwill 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_FIRSTworks the same way as offline but if data isn’t available locally it will try to connect to the server.
Enum constants
OFF | |
MANUAL | |
SMART | |
OFFLINE | |
OFFLINE_FIRST |
Methods
public static ConnectionRequest.CachingMode[] values() | |
public static ConnectionRequest.CachingMode valueOf(String name) |
Inherited methods
Enum constant details
OFF
OFFMANUAL
MANUALSMART
SMARTOFFLINE
OFFLINEOFFLINE_FIRST
OFFLINE_FIRSTMethod details
values
public static ConnectionRequest.CachingMode[] values()valueOf
public static ConnectionRequest.CachingMode valueOf(String name)