This has got to be one of the most frequently updated PHP sites, keep up the good work... "Questo ha ottenuto di essere uno dei siti più frequentemente aggiornati PHP, mantenere il buon lavoro ..."
Max

RocksCache Class

Descrizione

Questa classe consente una facile memorizzazione nella cache su disco di oggetti sulla base di una chiave che viene data al RocksCache.

  • Dominic Skinner autore: Dominic Skinner
  • 0.2.1 Versione: 0.2.1

) Situato in / RocksCache.php (linea 9)

Metodo Summary
__construct ( string $key , [ string $cacheFolder = "_cache" ]) RocksCache __construct (string $ key, [string $ cacheFolder = "_cache"])
Cache ( object $data ) boolean Cache (oggetto $ dati)
CacheExists () booleane CacheExists ()
DeleteCache () boolean DeleteCache ()
ReadCache () oggetto ReadCache ()
Metodi
(line 20 ) Costruttore __ construct (linea 20)

Il costruttore dà la cache di dollari valore della chiave, oltre a permettere l'$ cacheFolder di default per essere ignorato.

  • public accesso: public
__construct ( string $key , [ string $cacheFolder = "_cache" ]) RocksCache __ construct (string $ key, [string $ cacheFolder = "_cache"])
  • $key : the key that will be used to write the cache on disk string $ key: la chiave che verrà usato per scrivere la cache su disco
  • $cacheFolder : the location the cached item will be stored stringa $ cacheFolder: la posizione della voce nella cache verrà memorizzato
(line 32 ) Cache (linea 32)

Questa funzione memorizza nella cache di un oggetto passato. Gestisce la creazione di una nuova cartella cache.

  • true if sucessful return true se sucessful
  • public accesso: public
Cache ( object $data ) boolean Cache (oggetto $ dati)
  • $data : this is the object to serialize opporsi $ data: questo è l'oggetto da serializzare
(line 65 ) CacheExists (linea 65)

Questa funzione indica se esiste una cache

  • true if the cache exists ritorno: true se la cache esiste
  • public accesso: public
CacheExists () CacheExists Boolean ()
(line 56 ) DeleteCache (linea 56)

Questa funzione cancella l'oggetto in cache

  • true if sucessful return true se sucessful
  • public accesso: public
DeleteCache () boolean DeleteCache ()
(line 46 ) ReadCache (linea 46)

Questa funzione legge l'oggetto memorizzato nella cache

  • public accesso: public
ReadCache () oggetto ReadCache ()

Commento a data: 1. Pagina 1 di 1. Valutazione media:
1:12am on Monday, December 5th, 2011 01:12 am Jodecy sul Lunedi, dicembre 5th, 2011
Non posso credere che sto andando per anni senza che kowning.

security image

Scritto da Dominic Skinner
Ultimo aggiornamento: 2011/10/25 16:00:38