downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

APCIterator::current> <APCIterator
Last updated: Fri, 20 May 2011

view this page in

APCIterator::__construct

(PECL apc >= 3.1.1)

APCIterator::__constructConstruye un objeto iterador APCIterator

Descripción

APCIterator::__construct ( string $cache [, mixed $search = null [, int $format [, int $chunk_size = 100 [, int $list ]]]] )

Construye un object APCIterator .

Parámetros

cache

El tipo de caché, que será user o file.

search

Una expresión regular de PCRE que se compara con nombres de claves de APC, como string para una única expresión regular, o como un array de expresiones regulares. O, opcionalmente, pase NULL para saltar la búsquda.

format

El formato deseado, como se configuró con una o más de las constantes APC_ITER_*.

chunk_size

El tamaño de trozo. Debe ser un valor mayor que 0. El valor predeterminado es 100.

list

El tipo a listar. Se puede pasar APC_LIST_ACTIVE o APC_LIST_INACTIVE.

Valores devueltos

Un object APCIterator en caso de éxito, o NULL en caso de fallo.

Ver también

  • apc_exists() - Comprobar si existe una clave de APC
  • apc_cache_info() - Recupera información que hay en caché del almacén de datos de APC


add a note add a note User Contributed Notes APCIterator::__construct
Anti Veeranna 27-Oct-2010 07:46
Iterating (and specifically using current()) does not expunge cache entries for which $ttl has passed, you need to use apc_fetch to get rid of stale entries.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites