Add invalidate() method

Add a method to selectively remove an item from the cache.