Skip to content

Commit 200b3cd

Browse files
committed
add apcu
1 parent e3d4153 commit 200b3cd

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

Readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,33 @@ Examples:
7272

7373
> pinpoint-php-aop wrappers your class with an onBefore/onEnd/onException suite.
7474
75+
#### Supported libraries/framework
76+
77+
<details> <summary>Libraries</summary>
78+
79+
Type|Name|Version
80+
---|---|---
81+
Built-in | curl|
82+
||memcached|`3.2.0`
83+
||mysqli|
84+
||pdo|
85+
||phpredis|`6.0.2`
86+
||apcu|
87+
|User |guzzlehttp| `8.0.x-dev`
88+
||predis|`3.0`
89+
||mongodb|`v1.19.x`
90+
</details>
91+
92+
<details> <summary>Frameworks</summary>
93+
94+
Name|Version|
95+
|---|---|
96+
|Yii2||
97+
|wordpress||
98+
|thinkphp8||
99+
100+
</details>
101+
75102
#### Data Chart Map
76103

77104
![how it works](https://raw.githubusercontent.com/pinpoint-apm/pinpoint-c-agent/master/images/principle_v0.2.x.png)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/******************************************************************************
4+
* Copyright 2024 NAVER Corp. *
5+
* *
6+
* Licensed under the Apache License, Version 2.0 (the "License"); *
7+
* you may not use this file except in compliance with the License. *
8+
* You may obtain a copy of the License at *
9+
* *
10+
* http://www.apache.org/licenses/LICENSE-2.0 *
11+
* *
12+
* Unless required by applicable law or agreed to in writing, software *
13+
* distributed under the License is distributed on an "AS IS" BASIS, *
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15+
* See the License for the specific language governing permissions and *
16+
* limitations under the License. *
17+
******************************************************************************/
18+
namespace Pinpoint\Plugins\SysV2\_apcu;
19+
20+
if (!extension_loaded('apcu')) {
21+
return;
22+
}
23+
24+
require_once __DIR__ . "/apcu.php";
25+
26+
// author: eeliu
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
/******************************************************************************
4+
* Copyright 2024 NAVER Corp. *
5+
* *
6+
* Licensed under the Apache License, Version 2.0 (the "License"); *
7+
* you may not use this file except in compliance with the License. *
8+
* You may obtain a copy of the License at *
9+
* *
10+
* http://www.apache.org/licenses/LICENSE-2.0 *
11+
* *
12+
* Unless required by applicable law or agreed to in writing, software *
13+
* distributed under the License is distributed on an "AS IS" BASIS, *
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15+
* See the License for the specific language governing permissions and *
16+
* limitations under the License. *
17+
******************************************************************************/
18+
namespace Pinpoint\Plugins\SysV2\_apcu;
19+
20+
use function Pinpoint\Plugins\{
21+
pinpoint_join_cut
22+
};
23+
24+
use function Pinpoint\Plugins\SysV2\make_variable_length_list_plugin;
25+
26+
$points = [
27+
make_variable_length_list_plugin(['apcu_add']),
28+
make_variable_length_list_plugin(['apcu_fetch']),
29+
make_variable_length_list_plugin(['apcu_store']),
30+
make_variable_length_list_plugin(['apcu_clear_cache']),
31+
];
32+
33+
foreach ($points as $point) {
34+
pinpoint_join_cut(
35+
$point[0],
36+
$point[1],
37+
$point[2],
38+
$point[3]
39+
);
40+
}
41+
// author: eeliu

0 commit comments

Comments
 (0)