Drops every expired entry and returns how many were removed.
search already discards expired entries as it meets them, so this is only needed to reclaim memory in a cache that is written to far more often than it is read.