A simple cache that supports expiring and namespace