Added Cache::add method.