Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
8c44a276
Commit
8c44a276
authored
Sep 12, 2018
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取hash数据
parent
495f90f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
TraitYiiHashTable.php
classes/fpf/cache/TraitYiiHashTable.php
+7
-0
No files found.
classes/fpf/cache/TraitYiiHashTable.php
View file @
8c44a276
...
@@ -59,6 +59,13 @@ trait TraitYiiHashTable
...
@@ -59,6 +59,13 @@ trait TraitYiiHashTable
return
Yii
::
$app
->
redis
->
hset
(
$table
,
$key
,
$value
);
return
Yii
::
$app
->
redis
->
hset
(
$table
,
$key
,
$value
);
}
}
public
static
function
getHashDataByTable
(
$table
,
$cursor
=
0
,
$match
=
null
,
$pattern
=
null
,
$count
=
0
)
{
self
::
checkTable
(
self
::
DB_NAME
,
$table
);
$table
=
self
::
getHashTable
(
self
::
DB_NAME
,
$table
);
return
Yii
::
$app
->
redis
->
hscan
(
$table
,
$cursor
/*, $match, $pattern, $count*/
);
}
private
static
function
checkTable
(
$db_name
,
$table
)
private
static
function
checkTable
(
$db_name
,
$table
)
{
{
DefaultBaseImpl
::
checkTable
(
$db_name
,
$table
);
DefaultBaseImpl
::
checkTable
(
$db_name
,
$table
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment