Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
php_utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
php_utils
Commits
e3df8070
Commit
e3df8070
authored
Nov 05, 2021
by
顾文旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改session用redis
parent
82fc4f6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CacheUtil.php
src/Cache/CacheUtil.php
+1
-1
RedisUtil.php
src/Redis/RedisUtil.php
+5
-0
No files found.
src/Cache/CacheUtil.php
View file @
e3df8070
...
...
@@ -12,7 +12,7 @@ use Api\PhpUtils\Log\FileLog;
class
CacheUtil
{
const
PREFIX_NONE
=
''
;
const
PREFIX_BLANK_PREFIX
=
''
;
const
EXPIRE_NEVER
=
0
;
const
EXPIRE_AFTER_FIVE_SECONDS
=
5
;
const
EXPIRE_AFTER_ONE_MINUTE
=
60
;
...
...
src/Redis/RedisUtil.php
View file @
e3df8070
...
...
@@ -51,6 +51,11 @@ class RedisUtil
private
$prefix
=
''
;
private
$select
=
0
;
private
$config
=
[];
public
function
getConnectStatus
()
{
return
$this
->
connectStatus
;
}
public
function
getConnectServer
()
{
...
...
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