protected function stampedeKey($key) { $suffix = '.stampede'; if (substr($key, -strlen($suffix)) === $suffix) { throw new InvalidKey("Invalid key: {$key}. Keys with suffix '{$suffix}' are reserved."); } return $key . $suffix; }