Modified cache to use a namespace mechanism, which is what I need, based on my own implementation. Also added some __special__ methods to make it easier to interact with the cache object.