setCache

public GiniCoreAPIBuilder<DM, G, DR, E> setCache(Cache cache)

Set the cache implementation to use with OkHttp caching. If no cache is set, no caching will be used.

Return

The builder instance to enable chaining.

Parameters

cache

a cache instance (specified by the okhttp3.Cache)