Caster::PREFIX_VIRTUAL.'servers' =>
$c->
getServerList(),
Caster::PREFIX_VIRTUAL.'options' =>
new EnumStub( self::
getNonDefaultOptions($c) ),
];
return $a;
} private static function getNonDefaultOptions(\Memcached
$c): array
{ self::
$defaultOptions ??= self::
discoverDefaultOptions();
self::
$optionConstants ??= self::
getOptionConstants();
$nonDefaultOptions =
[];
foreach (self::
$optionConstants as $constantKey =>
$value) { if (self::
$defaultOptions[$constantKey] !==
$option =
$c->
getOption($value)) { $nonDefaultOptions[$constantKey] =
$option;
} } return $nonDefaultOptions;
}