Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
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
hujun
tl_estate
Commits
8258053c
Commit
8258053c
authored
Apr 09, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有效期
parent
71c05233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
RedisCacheService.php
application/api_broker/service/RedisCacheService.php
+4
-2
No files found.
application/api_broker/service/RedisCacheService.php
View file @
8258053c
...
...
@@ -28,11 +28,13 @@ class RedisCacheService
private
$rule_key
=
'cache_rule_'
;
private
$site_city_key
=
'cache_site_city_'
;
private
$time
;
private
$max_time
;
public
function
__construct
()
{
$this
->
redis_ext
=
RedisExt
::
getRedis
();
$this
->
time
=
1800
;
//2天
$this
->
time
=
1800
;
//30分钟
$this
->
max_time
=
2592000
;
//30天
}
/**
...
...
@@ -189,7 +191,7 @@ class RedisCacheService
$m_agent_phone
=
new
AAgentsPhone
();
$data
[
'phone_list'
]
=
$m_agent_phone
->
getAgentsByWhereColumn
([
'agents_id'
=>
$data
[
'id'
],
'status'
=>
0
],
'phone'
);
$data
[
'phone_list'
][]
=
$data
[
'phone'
];
$this
->
setRedisCache
(
$this
->
agent_key
.
$agent_id
,
$data
);
$this
->
setRedisCache
(
$this
->
agent_key
.
$agent_id
,
$data
,
$this
->
agent_time
);
}
return
$data
;
}
...
...
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