public enum ConnectionRequest.CachingMode

  1. Object
  2. Enum<ConnectionRequest.CachingMode>
  3. ConnectionRequest.CachingMode

ImplementsComparable<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.

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

OFF

MANUAL

MANUAL

SMART

SMART

OFFLINE

OFFLINE

OFFLINE_FIRST

OFFLINE_FIRST

Method details

values

public static ConnectionRequest.CachingMode[] values()

valueOf

public static ConnectionRequest.CachingMode valueOf(String name)