TODO Support first optional argument as config for phpredis 6.0+.
(&self)
| 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, |
no test coverage detected