« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for lived (0.000 sec.)
Yac::add — Store a value without overwriting an existing one | PHP 8.3 9357
Yac::add (PECL yac >= 1.0.0) Yac::add — Store a value without overwriting an existing one 説明 public function Yac::add ( string | array $key , mixed $value , int $ttl = 0 ): bool public function Yac::add ( array $values , int $ttl = 0 ): b ... with a TTL <?php $yac = new Yac (); // ttl in seconds; 0 (the default) means the entry never expires $yac -> add ( "short-lived" , "value" , 5 ); sleep ( 6 ); var_dump ( $yac -> get ( "short-lived" )); // bool(false): expired ?> 例3 Adding multiple e ...
https://man.mtool.work/php/8.3/yac.add.html
Yac::set — Store a value into the cache | PHP 8.3 9357
Yac::set (PECL yac >= 1.0.0) Yac::set — Store a value into the cache 説明 public function Yac::set ( string | array $key , mixed $value , int $ttl = 0 ): bool public function Yac::set ( array $values , int $ttl = 0 ): bool Stores a value in ... ing an entry with a TTL <?php $yac = new Yac (); // ttl in seconds: the entry expires after 5 seconds $yac -> set ( "short-lived" , "value" , 5 ); sleep ( 6 ); var_dump ( $yac -> get ( "short-lived" )); // bool(false): expired ?> 例3 Setting multiple ...
https://man.mtool.work/php/8.3/yac.set.html
PREV 1 NEXT