Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9a2944ac
".github/vscode:/vscode.git/clone" did not exist on "fa46aa4d85444c32de909dacfdf47c153537bd70"
Commit
9a2944ac
authored
Apr 08, 2009
by
Ludovico Magnocavallo
Browse files
add expire command to the php lib
parent
bb7dcc1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
client-libraries/php/redis.php
View file @
9a2944ac
...
...
@@ -118,6 +118,12 @@ class Redis {
return
$this
->
get_response
();
}
function
&
expire
(
$name
,
$time
)
{
$this
->
connect
();
$this
->
_write
(
"EXPIRE
$name
$time
\r\n
"
);
return
$this
->
get_response
();
}
function
&
push
(
$name
,
$value
,
$tail
=
true
)
{
// default is to append the element to the list
$this
->
connect
();
...
...
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