peek


Description:

public unowned Object? peek (void* key)

Peeks to see key is contained in the cache and returns the matching Object if it does.

The reference count of the resulting Object is not incremented. For that reason, it is important to remember that this function may only be called from the main thread.

Parameters:

this

An TaskCache

key

The key for the cache

Returns:

A Object or null if the key was not found in the cache.