note 119288 added to memcached.set
| From: | HaxxxxaH | Date: | Thu, 05 May 2016 05:44:40 +0000 |
| Subject: | note 119288 added to memcached.set | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205429@lists.php.net to get a copy of this message | ||
@PeterN
You said that this was wrong:
$m->set('object', new stdclass, time() + 300);
And instead this is the correct way:
$m->set('object', new stdclass, 300);
When actually, they are both correct. Expiration looks at the time given, if the number is less than
or equal to 30 days(60 * 60 * 24 * 30 = 2,592,000), then it expires in that many seconds. If the
number is greater than 30 days, then it expires at that UNIX time.
----
Server IP: 72.52.91.14
Probable Submitter: 73.30.103.93
----
Manual Page -- http://php.net/manual/en/memcached.set.php
Edit -- https://master.php.net/note/edit/119288
Del: integrated -- https://master.php.net/note/delete/119288/integrated
Del: useless -- https://master.php.net/note/delete/119288/useless
Del: bad code -- https://master.php.net/note/delete/119288/bad+code
Del: spam -- https://master.php.net/note/delete/119288/spam
Del: non-english -- https://master.php.net/note/delete/119288/non-english
Del: in docs -- https://master.php.net/note/delete/119288/in+docs
Del: other reasons-- https://master.php.net/note/delete/119288
Reject -- https://master.php.net/note/reject/119288
Search -- https://master.php.net/manage/user-notes.php