FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Test/phpfastcach/testing.php at master · JavaDevl/Test · GitHub
JavaDevl
/
Test
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Test
/
phpfastcach
/
testing.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
115 lines (83 loc) · 3.31 KB
Breadcrumbs
Test
/
phpfastcach
/
testing.php
Copy path
File metadata and controls
115 lines (83 loc) · 3.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
/*
* A Testing File for you can try testing & debugging phpFastCache;
* Just run on your webserver http://localhost/webserver/testing/index.php
* Any question please skype: khoaofgod or email khoaofgod@yahoo.com
* More information at http://www.phpfastcache.com
*/
include_once
'
../retreivedata.php
'
;
include
(
"
php_fast_cache.php
"
);
$
caching
=
array
(
"
auto
"
,
"
files
"
,
"
pdo
"
,
"
mpdo
"
,
"
xcache
"
,
"
apc
"
,
"
memcache
"
,
"
memcached
"
,
"
wincache
"
);
$
tmp
=
new
phpFastCache
();
// data use for caching ^ testing
/////////////////////////////////////////////////////
$
time_start2
=
microtime
(
true
);
$
rd
=
new
dataretrieval
(
"
topstories
"
,
5
);
$
time_end2
=
microtime
(
true
);
$
time2
=
$
time_end2
-
$
time_start2
;
print_r
(
$
rd
);
echo
'
Script for executing dataretrieval function took
'
.
$
time2
.
'
seconds to execute
'
;
/////////////////////////////////////////////////////
$
data
=
array
(
1
,
"
abc hello world
"
,
""
,
null
,
0
,
$
rd
,
);
// $data = array(null,null,"",null);
echo
"
Try get Server information ... Take 10 - 15 seconds to detect ...<br>
"
;
phpFastCache::
debug
(phpFastCache::
systemInfo
());
echo
"
<b>Data will be testing - Included NULL and Emptry String</b>
"
;
phpFastCache::
debug
(
$
data
);
$
c
=
array
(
"
red
"
,
"
blue
"
,
"
green
"
,
"
orange
"
,
"
black
"
,
"
red
"
,
"
blue
"
,
"
green
"
,
"
orange
"
,
"
black
"
);
$
xx
=
0
;
foreach
(
$
caching
as
$
st
) {
$
dem
=
0
;
$
color
=
$
c
[
$
xx
];
$
xx
++;
phpFastCache::
$
storage
=
$
st
;
echo
"
<font color=
$
color
>
------------------------------------------------- <br>
Caching =
$
st
<br>
"
;
$
time_start2
=
microtime
(
true
);
if
((
isset
(phpFastCache::
$
sys
[
'
drivers
'
][
$
st
]) && phpFastCache::
$
sys
[
'
drivers
'
][
$
st
] ==
true
) ||
$
st
==
"
auto
"
) {
foreach
(
$
data
as
$
string
) {
$
dem
++;
echo
"
SET
$
dem
-->
"
;
phpFastCache::
set
(
"
A
"
.
$
dem
,
$
string
);
echo
"
GET
$
dem
=
"
;
$
x
= phpFastCache::
get
(
"
A
"
.
$
dem
);
if
(
$
dem
==
6
) {
print_r
(
$
x
);
}
else
{
echo
$
x
;
if
(
is_numeric
(
$
x
)) {
phpFastCache::
increment
(
"
A
"
.
$
dem
);
phpFastCache::
increment
(
"
A
"
.
$
dem
);
phpFastCache::
increment
(
"
A
"
.
$
dem
);
$
x
= phpFastCache::
get
(
"
A
"
.
$
dem
);
echo
"
Increase to
"
.
$
x
;
phpFastCache::
decrement
(
"
A
"
.
$
dem
);
phpFastCache::
decrement
(
"
A
"
.
$
dem
);
phpFastCache::
decrement
(
"
A
"
.
$
dem
);
/////////////////////////////////////////////////////
$
x
= phpFastCache::
get
(
"
A
"
.
$
dem
);
/////////////////////////////////////////////////////
echo
"
Decrease to
"
.
$
x
;
}
}
phpFastCache::
delete
(
"
A
"
.
$
dem
);
echo
"
|| Finished Testing || Deleted
"
;
echo
"
<br>
"
;
}
}
else
{
echo
"
<-- NOT SUPPORTED ON THIS SERVER WITH DEFAULT CONFIG 127.0.0.1 <br>
"
;
}
$
time_end2
=
microtime
(
true
);
$
time2
=
$
time_end2
-
$
time_start2
;
echo
'
Script for executing script 2 dataretrieval function took
'
.
$
time2
.
'
seconds to execute
'
;
echo
"
</font>
"
;
}
echo
"
<hr>
"
;
phpinfo
();
Back
|
FazBrowse Home
|
New Git URL