« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 85 for Shared (0.001 sec.)
The SyncSharedMemory class | PHP 8.3 12228
The SyncSharedMemory class (PECL sync >= 1.1.0) はじめに A cross-platform, native, consistent implementation of named shared memory objects. Shared memory lets two separate processes communicate without the need for complex pipes or sockets ... . There are several integer-based shared memory implementations for PHP. Named shared memory is an alternative. Synchronization objects (e.g. SyncMutex) are still ... required to protect most uses of shared memory. クラス概要 class SyncSharedMemory { /* メソッド */ public function __construct ( string $name , int $size ) public ... , int $length = ? ) public function size (): int public function write ( string $string = ? , int $start = 0 ) } 目次 SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object SyncSharedMemory::first — Check to see if the object is the ...
https://man.mtool.work/php/8.3/class.syncsharedmemory.html
SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object | PHP ... 12133
SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory obj ... ect. パラメータ name The name of the shared memory object. 注意 : If the name already exists, it must be able to be opened by the current user that the process is run ... ning as or an exception will be thrown with a meaningless error message. size The size, in bytes, of shared memory to reserve. 注意 : The amount of memory cannot be resized later. Request sufficient storage up front. 戻り値 The ne ... w SyncSharedMemory object. エラー / 例外 An exception is thrown if the shared memory object cannot be created or opened. 例 例1 SyncSha ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
SyncSharedMemory::read — Copy data from named shared memory | PHP 8.3 11971
SyncSharedMemory::read (PECL sync >= 1.1.0) SyncSharedMemory::read — Copy data from named shared memory 説明 public function SyncSharedMemory::read ( int $start = 0 , int $length = ? ) Copies data from named shared memory. パラメータ start ... ng. 注意 : If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment. length The number of bytes to read. 注意 : If unspecified, reading will stop at the end of the shared memo ... ry segment. If the value is negative, reading will stop the specified number of bytes from the end of the shared memory segment. 戻り値 A string containing the data read from shared memory. 例 例1 SyncSharedMemory::__construct() exampl ... e <?php // You will probably need to protect shared memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new ...
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
SyncSharedMemory::write — Copy data to named shared memory | PHP 8.3 11917
SyncSharedMemory::write (PECL sync >= 1.1.0) SyncSharedMemory::write — Copy data to named shared memory 説明 public function SyncSharedMemory::write ( string $string = ? , int $start = 0 ) Copies data to named shared memory. パラメータ stri ... ng The data to write to shared memory. 注意 : If the size of the data exceeds the size of the shared memory, the number of bytes written returned will be ... ng. 注意 : If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment. 戻り値 An integer containing the number of bytes written to shared memory. 例 例1 SyncSharedMemory::write( ... ) example <?php // You will probably need to protect shared memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new ...
https://man.mtool.work/php/8.3/syncsharedmemory.write.html
SyncSharedMemory::size — Returns the size of the named shared memory | PHP 8.3 9715
SyncSharedMemory::size (PECL sync >= 1.1.0) SyncSharedMemory::size — Returns the size of the named shared memory 説明 public function SyncSharedMemory::size (): int Retrieves the shared memory size of a SyncSharedMemory object. パラメータ こ ... の関数にはパラメータはありません。 戻り値 An integer containing the size of the shared memory. This will be the same size that was passed to the constructor. 例 例1 SyncSharedMemory::size() example <?php $mem ... = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem -> size ()); ?> 上の例の出力は、 たとえば以下のようになります。 int(1024 ... ) 参考 SyncSharedMemory::__construct() - Constructs a new SyncSharedMemory object SyncSharedMemory::write() - Copy data to named shared memo ...
https://man.mtool.work/php/8.3/syncsharedmemory.size.html
Sync | PHP 8.3 8269
Sync はじめに The sync extension introduces cross-platform synchronization objects into PHP. Named and unnamed Mutex, Semaphore, Event, Reader-Writer, and named Shared Memory objects provide OS-level synchronization on both POSIX (e.g. Linu ... SyncReaderWriter::writelock — Waits for an exclusive write lock SyncReaderWriter::writeunlock — Releases a write lock SyncSharedMemory — The SyncSharedMemory class SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object SyncSharedMemo ... ry::first — Check to see if the object is the first instance system-wide of named shared memory SyncSharedMemory::read — Copy data from named shared memory SyncSharedMemory::size — Returns the size of the named ... shared memory SyncSharedMemory::write — Copy data to named shared memory 他のマニュアルの関連ページ Linux JM sync(2) Linux JM lock(2) Linux JM scri ...
https://man.mtool.work/php/8.3/book.sync.html
SyncSharedMemory::first — Check to see if the object is the first instance syst... 8215
SyncSharedMemory::first (PECL sync >= 1.1.0) SyncSharedMemory::first — Check to see if the object is the first instance system-wide of named shared memory 説明 public function SyncSharedMemory::first (): bool Retrieves the system-wide first ... instance status of a SyncSharedMemory object. パラメータ この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返しま ... す。 例 例1 SyncSharedMemory::first() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first ... time initialization work here. } var_dump ( $mem -> first ()); $mem2 = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem2 -> first ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(t ...
https://man.mtool.work/php/8.3/syncsharedmemory.first.html
Yac | PHP 8.3 8174
Yac はじめに Yac (Yet Another Cache) is a lock-free, shared memory user data cache, and can be used to replace APC or local memcached. Yac stores data in shared memory, which makes it visible to every PHP worker of the same machine without ... simply retry. With no locks and no inter-process communication in the access path, a read is essentially a hash lookup in shared memory. As a result, Yac is extremely fast, with microsecond-level read latency, and its throughput can scale with the num ... rsion 2.4.0 also switched the compression backend from FastLZ to LZ4, making compressed reads several times faster. 注意 : Shared memory is only visible within one machine. To share a cache across several servers, use a network cache such as Memcached ... Store a value using property syntax 他のマニュアルの関連ページ Linux JM hash(3) Linux JM access(2) Python multiprocessing.shared_memory Docker start Linux JM pldd(1) Docker ip ...
https://man.mtool.work/php/8.3/book.yac.html
parallel\Runtime::run — Execution | PHP 8.3 8174
parallel\Runtime::run (0.8.0) parallel\Runtime::run — Execution 説明 public function parallel\Runtime::run ( Closure $task ): ? Future Shall schedule task for execution in parallel. public function parallel\Runtime::run ( Closure $task , ar ... ently lacks the mechanics to do this (without serialization) and so only objects that do not use a custom structure may be shared. Some internal objects do not use a custom structure, for example parallel\Events\Event and so may be shared. Closures are ... a special kind of internal object and support being copied by value, and so may be shared. Channels are central to writing parallel code and support concurrent access and execution by necessity, and so may be sha ... custom structure as defined by the internal class, in which case they cannot be copied by value safely, and so may not be shared. 戻り値 警告 The return parallel\Future must not be ignored when the task contains a return or throw statement. Exceptions ...
https://man.mtool.work/php/8.3/parallel-runtime.run.html
実行時設定 | PHP 8.3 8066
実行時設定 php.ini の設定により動作が変化します。 Yac 設定オプション 名前 デフォルト 変更可能 変更履歴 yac.compress_threshold 4K INI_SYSTEM yac.debug 0 INI_ALL yac.enable 1 INI_SYSTEM yac.enable_cli 0 INI_SYSTEM yac.keys_memory_size 8M INI_ ... elow the stored entry limit, and other positive values are clamped to the 1024 .. 1M range. Compressing large values saves shared memory at the cost of some CPU on both store and retrieve. yac.debug int Reserved for debugging. As of Yac 2.4.0 this dire ... ing under the CLI SAPI. It is disabled by default because command line scripts usually start and stop immediately, and the shared memory segment would be created for nothing. yac.keys_memory_size string Amount of shared memory for the table of keys. It ... see Memory Management for how a full table behaves and when that actually matters. yac.values_memory_size string Amount of shared memory for storing values. Values are allocated in a bump allocator over segments of 4M each; when no segment has room for ...
https://man.mtool.work/php/8.3/yac.configuration.html
PREV 1 2 3 4 5 6 7 8 9 NEXT