FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
framework/tests/kv.php at master · 865826021/framework · GitHub
865826021
framework
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
framework
/
tests
/
kv.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 451 Bytes
Breadcrumbs
framework
/
tests
/
kv.php
Copy path
File metadata and controls
18 lines (16 loc) · 451 Bytes
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
<?php
define
(
'
DEBUG
'
,
'
on
'
);
define
(
'
WEBPATH
'
,
realpath
(
__DIR__
.
'
/..
'
));
//包含框架入口文件
require
WEBPATH
.
'
/libs/lib_config.php
'
;
$
kv
=
new
\
Swoole
\
Memory
\
Storage
();
//var_dump($kv->get('swoole'));
//var_dump($kv->set('swoole', array(123, 456)));
//var_dump($kv->get('swoole'));
//var_dump($kv->del('swoole'));
//var_dump($kv->get('swoole'));
foreach
(
range
(
0
,
100
)
as
$
i
)
{
$
kv
->
set
(
'
test:
'
.
$
i
,
$
i
);
}
var_dump
(
$
kv
->
scan
(
'
test:
'
));
Back
|
FazBrowse Home
|
New Git URL