Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
yilu
permission
Commits
8e907ef2
Commit
8e907ef2
authored
3 years ago
by
马 川
Browse files
Options
Downloads
Patches
Plain Diff
predis 和 phpredis在sadd()方法上采取不同的传参方式
parent
46829b41
Tags
4.1.15
No related merge requests found
Pipeline
#8556
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UserCache.php
+5
-1
src/UserCache.php
with
5 additions
and
1 deletion
src/UserCache.php
+
5
−
1
View file @
8e907ef2
...
...
@@ -50,7 +50,11 @@ class UserCache
$pipe
->
set
(
$key
,
$value
);
}
}
$pipe
->
sadd
(
$keys
[
0
],
$keys
);
if
(
config
(
'database.redis.client'
)
==
'phpredis'
)
{
$pipe
->
sadd
(
$keys
[
0
],
...
$keys
);
}
else
{
$pipe
->
sadd
(
$keys
[
0
],
$keys
);
}
if
(
$expires
=
$this
->
redis
->
getExpires
())
{
foreach
(
$keys
as
$key
)
$pipe
->
expire
(
$key
,
$expires
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets