MCPcopy Create free account
hub / github.com/apache/skywalking-php / hook_redis_construct

Method hook_redis_construct

src/plugin/plugin_redis.rs:197–207  ·  view source on GitHub ↗

TODO Support first optional argument as config for phpredis 6.0+.

(&self)

Source from the content-addressed store, hash-verified

195 /// TODO Support first optional argument as config for phpredis 6.0+.
196 /// <https://github.com/phpredis/phpredis/blob/cc2383f07666e6afefd7b58995fb607d9967d650/README.markdown#example-1>
197 fn hook_redis_construct(&self) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) {
198 (
199 Box::new(|_, execute_data| {
200 let this = get_this_mut(execute_data)?;
201 hack_free(this, Some(redis_dtor));
202
203 Ok(Box::new(()))
204 }),
205 Noop::noop(),
206 )
207 }
208
209 fn hook_redis_connect(
210 &self, class_name: &str, function_name: &str,

Callers 1

hookMethod · 0.80

Calls 2

get_this_mutFunction · 0.85
hack_freeFunction · 0.85

Tested by

no test coverage detected