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
fusiondirectory
Securimage
Commits
1cf005af
Unverified
Commit
1cf005af
authored
3 years ago
by
Drew Phillips
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
Use Redis::expire() instead of setTimeout - #110
parent
39814214
nextgen
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
StorageAdapter/Redis.php
+5
-1
StorageAdapter/Redis.php
with
5 additions
and
1 deletion
+5
-1
StorageAdapter/Redis.php
+
5
−
1
View file @
1cf005af
...
@@ -48,7 +48,11 @@ class Redis implements AdapterInterface
...
@@ -48,7 +48,11 @@ class Redis implements AdapterInterface
}
}
if
(
$this
->
redis
->
hMSet
(
$captchaId
,
$hash
))
{
if
(
$this
->
redis
->
hMSet
(
$captchaId
,
$hash
))
{
$this
->
redis
->
setTimeout
(
$captchaId
,
$this
->
expiration
);
if
(
method_exists
(
$redis
,
'expire'
))
{
$this
->
redis
->
expire
(
$captchaId
,
$this
->
expiration
);
}
else
{
$this
->
redis
->
setTimeout
(
$captchaId
,
$this
->
expiration
);
}
return
true
;
return
true
;
}
else
{
}
else
{
return
false
;
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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