Added Cache class and SimpleCache subclass.