jsonDebugTestSharedApi method

Future jsonDebugTestSharedApi(
  1. String key,
  2. String path, {
  3. bool forceRun = false,
})

JSON.DEBUG TEST-SHARED-API key path

Provide testing for Shared api interface for search.

⚠️ WARNING: This is a testing command. Do not use on production.

Implementation

Future<dynamic> jsonDebugTestSharedApi(String key, String path,
    {bool forceRun = false}) async {
  await checkValkeySupportExtended('JSON.DEBUG', 'TEST-SHARED-API',
      forceRun: forceRun);

  printDebugWarning();
  final cmd = <String>['JSON.DEBUG', 'TEST-SHARED-API', key, path];
  return execute(cmd);
}