Class Zend_Cache_Backend_Sqlite

Description

Implements interfaces:

  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Cache/Backend/Sqlite.php (line 35)


	
			
Method Summary
 Zend_Cache_Backend_Sqlite __construct ([array $options = array()])
 void __destruct ()
 boolean clean ([string $mode = Zend_Cache::CLEANING_MODE_ALL], [mixed $tags = array()])
 string get (string $id, [boolean $doNotTestCacheValidity = false])
 boolean remove (string $id)
 boolean save (string $data, string $id, [array $tags = array()])
 void setDirectives (array $directives)
 mixed test (string $id)
 void ___expire (string $id)
Methods
Constructor __construct (line 89)

Constructor

  • access: public
Zend_Cache_Backend_Sqlite __construct ([array $options = array()])
  • array $options: associative array of options
Destructor __destruct (line 108)

Destructor

  • access: public
void __destruct ()
clean (line 241)

Clean some cache records

Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags ($tags can be an array of strings or a single string) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags} ($tags can be an array of strings or a single string)

  • return: true if no problem
  • access: public
boolean clean ([string $mode = Zend_Cache::CLEANING_MODE_ALL], [mixed $tags = array()])
  • string $mode: clean mode

Implementation of:
Zend_Cache_Backend_Interface::clean()
Clean some cache records
get (line 138)

Test if a cache is available for the given id and (if yes) return it (false else)

  • return: cached datas (or false)
  • access: public
string get (string $id, [boolean $doNotTestCacheValidity = false])
  • string $id: cache id
  • boolean $doNotTestCacheValidity: if set to true, the cache validity won't be tested

Implementation of:
Zend_Cache_Backend_Interface::get()
Test if a cache is available for the given id and (if yes) return it (false else)
remove (line 217)

Remove a cache record

  • return: true if no problem
  • access: public
boolean remove (string $id)
  • string $id: cache id

Implementation of:
Zend_Cache_Backend_Interface::remove()
Remove a cache record
save (line 180)

Save some string datas into a cache record

Note : $data is always "string" (serialization is done by the core not by the backend)

  • return: true if no problem
  • access: public
boolean save (string $data, string $id, [array $tags = array()])
  • string $data: datas to cache
  • string $id: cache id
  • array $tags: array of strings, the cache record will be tagged by each string entry

Implementation of:
Zend_Cache_Backend_Interface::save()
Save some string datas into a cache record
setDirectives (line 118)

Set the frontend directives

  • access: public
void setDirectives (array $directives)
  • array $directives: assoc of directives

Implementation of:
Zend_Cache_Backend_Interface::setDirectives()
Set the frontend directives
test (line 158)

Test if a cache is available or not (for the given id)

  • return: false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  • access: public
mixed test (string $id)
  • string $id: cache id

Implementation of:
Zend_Cache_Backend_Interface::test()
Test if a cache is available or not (for the given id)
___dropDatabaseFile (line 324)

PUBLIC METHOD FOR UNIT TESTING ONLY !

Unlink the database file

  • access: public
void ___dropDatabaseFile ()
___expire (line 313)

PUBLIC METHOD FOR UNIT TESTING ONLY !

Force a cache record to expire

  • access: public
void ___expire (string $id)
  • string $id: cache id

Documentation generated on Fri, 30 Jun 2006 11:21:38 -0500 by phpDocumentor 1.3.0RC6