SimpleInMemoryCache

A simple in-memory cache implementation.

Since

0.9.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun <T> memoize(response: Gw2ApiResponse<T>)

Memoizes the given Gw2ApiResponse.

Link copied to clipboard
open override fun <T> query(request: Gw2ApiRequest<T>): Gw2ApiResponse<T>?

Queries the cache for a given Gw2ApiRequest and returns the cached Gw2ApiResponse or null if no appropriate response was cached.