PokeAPI::Cache
Constructors
Instance methods
clear
Clears the cache.
true is returned if the cache was cleared successfully, otherwise false.
Checks if cache contains key.
Returns true is key is in cache and the value has not been
cached for more than time_cached.
false is returned if key doesn't exist in the cache or if
the cached data is out-dated.
Out-dated data gets deleted before false is returned.