cleanup

fun cleanup()

Cleans up expired entries in the cache.

If an expiry is set, this method removes all entries with a query_date older than the expiry period.