Cache.contains

bool contains(string key) @safe

Checks if a key exists in the cache and is not expired.

Parameters

keyCache key

Returns

true if the key exists and is not expired