Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f72e2c25
authored
2022-08-30 17:27:57 -0400
by
Jeremy Groot
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix to TZRedis
1 parent
5564af56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/TZRedis.php
lib/TZRedis.php
View file @
f72e2c2
...
...
@@ -23,7 +23,7 @@ class TZRedis {
}
}
static
function
set
(
$key
,
$val
,
$expire
=
6
0
)
{
static
function
set
(
$key
,
$val
,
$expire
=
30
0
)
{
try
{
self
::
connectInstance
();
...
...
@@ -33,7 +33,7 @@ class TZRedis {
}
}
catch
(
Throwable
$e
)
{
error_log
(
self
::
$err
.
"Failed to set "
.
$key
.
" with "
.
$val
);
error_log
(
self
::
$err
.
"Failed to set "
.
$key
.
" with "
.
$val
.
", error message = "
.
$e
->
getMessage
()
);
}
}
...
...
@@ -44,7 +44,7 @@ class TZRedis {
if
(
self
::
$redis
)
{
if
(
$unserialize
)
{
unserialize
(
self
::
$redis
->
get
(
$key
));
return
unserialize
(
self
::
$redis
->
get
(
$key
));
}
else
{
return
self
::
$redis
->
get
(
$key
);
}
...
...
@@ -75,7 +75,7 @@ class TZRedis {
self
::
connectInstance
();
if
(
self
::
$redis
)
{
return
self
::
$redis
->
delete
(
$key
);
self
::
$redis
->
delete
(
$key
);
}
}
catch
(
Throwable
$e
)
{
...
...
Please
register
or
sign in
to post a comment