Results of 1 - 7 of about 7 for slot (0.001 sec.)
- Yac::delete — Remove items from cache | PHP 8.3 11941
- 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 wri ... te reclaims the slot. As a result, the used-slot count reported by Yac::info() does not decrease after a deletion, and Yac::dump() still lists ... the deleted entry until its slot is recycled; a non-zero ttl in the past marks a deleted or expired entry, so when inspecting the output of Yac::dump() , s ...
-
https://man.mtool.work/php/8.3/yac.delete.html
- Memory Management | PHP 8.3 10560
- 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
... ching either knob. What Each Pool Holds The two pools store different halves of an entry. The key pool holds the keys: one slot per cached key, carrying the key itself (up to 48 bytes) together with its hash, TTL, hit count and last-access time; the ... e that fit in 60 signed bits on 64-bit builds), strings of up to 7 bytes and empty arrays — are stored directly inside the slot, in the pointer that would otherwise reference a block. Such values occupy no space in the value pool at all; only their k ... ool is a ring, and a value only dies once the allocator cursor comes back around to overwrite it. Embedded values occupy a slot like any other entry, but consume no space in the value pool, so leave them out of the second calculation. The key pool (s ...
-
https://man.mtool.work/php/8.3/yac.memory-management.html
- Yac::dump — Dump cache entries for inspection | PHP 8.3 10269
- 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
... return. 戻り値 An array with one element per dumped entry. Each element is itself an array describing the entry: index The slot index of the entry in the hash table. hash The 64-bit hash of the key, used for slot probing. crc The CRC32 checksum of th ... 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 ... overwritten by a new Yac::set() or Yac::add() (as of yac 2.4.0). embedded Whether the value is stored directly inside the slot instead of in a separate value block (as of yac 2.4.0). Small values — NULL , booleans, small integers, strings of up to 7 ...
-
https://man.mtool.work/php/8.3/yac.dump.html
- Yac::info — Status of cache | PHP 8.3 9069
- 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 Memor ... not allocate a value block. kicks Number of evictions: how often an existing entry had to be evicted because the candidate slot path was full. recycles Number of times the allocator reached the end of a segment and wrapped around to its beginning. st ... art_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 $ya ...
-
https://man.mtool.work/php/8.3/yac.info.html
- Yac | PHP 8.3 8051
- 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
... any inter-process communication. Instead of locking, Yac relies on atomic slot updates plus a few collision probes, so a cache miss never blocks a request, and a concurrent write can at worst cause a f ... t fit in 60 signed bits on 64-bit builds), strings of up to 7 bytes and empty arrays — are stored directly inside the hash slot instead of in a separate value block ("embedded values"), which removes the value-memory allocation and block copy on ever ...
-
https://man.mtool.work/php/8.3/book.yac.html
- Yac::get — Retrieve values from cache | PHP 8.3 7106
- Yac::get (PECL yac >= 1.0.0) Yac::get — Retrieve values from cache 説明 public function Yac::get ( string | array $key , mixed $default = null ): mixed Retrieve values from cache パラメータ key A string key, or an array of keys. default The
... esent in the cache, available as of yac 2.4.0. When omitted, a miss returns false . 注意 : Before yac 2.4.0, this argument slot held a by-reference $cas token rather than a default value. Code that passed or relied on that token must be updated when ...
-
https://man.mtool.work/php/8.3/yac.get.html
- 定義済み定数 | PHP 8.3 6561
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 AF_UNIX ( int ) Unixドメイン中のファイルシステムパス名を示す、 ソケットアドレ
... Exchange full. SOCKET_ENOANO ( int ) No anode. SOCKET_EBADRQC ( int ) Invalid request code. SOCKET_EBADSLT ( int ) Invalid slot. SOCKET_ENOSTR ( int ) Device not a stream. SOCKET_ENODATA ( int ) No data available. SOCKET_ETIME ( int ) Timer expired. ...
-
https://man.mtool.work/php/8.3/sockets.constants.html
PREV
1
NEXT