Added Cache::registerAdapter method