« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for slots (0.001 sec.)
Yac::info — Status of cache | PHP 8.3 12539
Yac::info (PECL yac >= 1.0.0) Yac::info — Status of cache 説明 public function Yac::info (): array Get status of cache system パラメータ この関数にはパラメータはありません。 戻り値 Returns an array with the following keys: memory_size Total ... shared memory in use, in bytes: the slot table plus the value blocks. slots_memory_size Memory reserved for the hash slot table, in bytes. values_memory_size Memory reserved for the stored values, i ... gment and wrapped around to its beginning. start_time The Unix timestamp at which the shared memory cache was initialized. slots_size Total number of hash slots. slots_used Number of hash slots currently occupied. 例 例1 Yac::info() example <?php $yac ... "bar" ); print_r ( $yac -> info ()); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [memory_size] => 75497472 [slots_memory_size] => 8388608 [values_memory_size] => 67108864 [segment_size] => 4194304 [segment_num] => 16 [miss] => 0 [hits] ...
https://man.mtool.work/php/8.3/yac.info.html
Memory Management | PHP 8.3 10602
Memory Management Yac keeps its data in two independent shared-memory pools, configured with yac.keys_memory_size and yac.values_memory_size . They fill up and free up in different ways, so it helps to know which pool a symptom belongs to b ... t like any other entry, but consume no space in the value pool, so leave them out of the second calculation. The key pool (slots) yac.keys_memory_size holds a fixed-size table of slots — the default of 8M gives around 65,536 slots. Each stored key occ ... upies exactly one slot, so this pool caps the number of entries that can exist at once; unlike the value pool, slots are never individually freed. An expired slot — one past its TTL, or the tombstone left by Yac::delete() — is recycled for ... free when a new key needs it. Only when all four candidate slots of a probe path hold live entries is one of them evicted to make room — one kick (the kicks counter of Yac::info() ). The ...
https://man.mtool.work/php/8.3/yac.memory-management.html
Yac::delete — Remove items from cache | PHP 8.3 8335
Yac::delete (PECL yac >= 1.0.0) Yac::delete — Remove items from cache 説明 public function Yac::delete ( string | array $key , int $delay = 0 ): bool Removes one or more items from the cache. 注意 : Deletion is implemented by marking the en ... try expired rather than clearing its slot: the entry immediately stops being readable, but the slot stays occupied until the same key is stored again or a later write reclaims the slot. As a result, the used-slot count repo ... written yet var_dump ( $yac -> delete ( "never" )); // bool(false): was never stored // a deletion does not free the slot: slots_used does not drop, and // the expired entry still shows up in the dump var_dump ( $yac -> info ()[ "slots_used" ]); // in ...
https://man.mtool.work/php/8.3/yac.delete.html
apcu_cache_info — APCu のデータから、キャッシュされた情報を取得する | PHP 8.3 7805
apcu_cache_info (PECL apcu >= 4.0.0) apcu_cache_info — APCu のデータから、キャッシュされた情報を取得する 説明 function apcu_cache_info ( bool $limited = false ): array | false APCu のデータから、キャッシュされた情報およびメタデータを取得しま ... pcu_cache_info() の例 <?php print_r ( apcu_cache_info ()); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [num_slots] => 2000 [ttl] => 0 [num_hits] => 9 [num_misses] => 3 [start_time] => 1123958803 [cache_list] => Array ( [0] => Array ( [f ...
https://man.mtool.work/php/8.3/function.apcu-cache-info.html
実行時設定 | PHP 8.3 7805
実行時設定 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_ ... ten ("recycled"). Their reads then degrade to misses, detected by an integrity guard. Enlarge this if recycles climb while slots still have room, or enable yac.compress_threshold to shrink large payloads. See Memory Management . yac.serializer string ...
https://man.mtool.work/php/8.3/yac.configuration.html
Yac::dump — Dump cache entries for inspection | PHP 8.3 7677
Yac::dump (PECL yac >= 1.0.0) Yac::dump — Dump cache entries for inspection 説明 public function Yac::dump ( int $limit = 100 , int $offset = 0 ): array Dumps metadata of the entries currently stored in the cache. The values themselves are ... time), updated on each successful Yac::get() . When the cache is full, the entry with the oldest atime among the candidate slots is evicted first (as of yac 2.4.0). hits A per-entry hit counter, bumped on each successful Yac::get() and reset when the ...
https://man.mtool.work/php/8.3/yac.dump.html
PREV 1 NEXT