fn hook_memcache_server()

in src/plugin/plugin_memcache.rs [141:161]


    fn hook_memcache_server(
        &self, class_name: Option<String>, function_name: String, style: ApiStyle,
    ) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) {
        (
            Box::new(move |_, execute_data| {
                let this = style.get_this_mut(execute_data)?;
                let handle = this.handle();
                PEER_MAP.remove(&handle);

                debug!(
                    handle,
                    ?class_name,
                    function_name,
                    "remove peers cache when server added"
                );

                Ok(Box::new(()))
            }),
            Noop::noop(),
        )
    }