Class XOAD_Cache_Storage

Description

XOAD_Cache Storage Class.

This class is used as base class for all XOAD_Cache storage providers.

Example XOAD_Cache provider: XOAD_Cache_Storage_Files.

  • version: 0.6.0.0
  • author: Stanimir Angeloff

Located in /extensions/cache/classes/Storage.class.php (line 35)


	
			
Direct descendents
Class Description
 class XOAD_Cache_Storage_Files XOAD_Cache Storage Files Class.
 class XOAD_Cache_Storage_MySQL XOAD_Cache Storage MySQL Class.
Method Summary
 XOAD_Cache_Storage XOAD_Cache_Storage ([string $dsn = null])
 bool collectGarbage ()
 string generateID ([string $data = null])
 mixed load ([mixed $id = null])
 bool save ([mixed $id = null], [int $expires = null], [mixed $data = null])
Methods
Constructor XOAD_Cache_Storage (line 46)

Creates a new instance of the XOAD_Cache_Storage class.

  • access: public
XOAD_Cache_Storage XOAD_Cache_Storage ([string $dsn = null])
  • string $dsn: The data source name and parameters to use when creating the instance.
collectGarbage (line 89)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool collectGarbage ()

Redefined in descendants as:
generateID (line 74)

Generates an unique ID from the given data.

  • return: The unique ID from the given data.
  • access: public
string generateID ([string $data = null])
  • string $data: The data to use when generating the ID.
load (line 106)

Abstract base class method.

Successor classes should override this method.

  • access: public
mixed load ([mixed $id = null])
  • mixed $id: The ID of the cached data.

Redefined in descendants as:
save (line 128)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool save ([mixed $id = null], [int $expires = null], [mixed $data = null])
  • mixed $id: The ID to use when saving the data.
  • int $expires: The lifetime time in seconds for the cached data.
  • mixed $data: The data to cache.

Redefined in descendants as:

Documentation generated on Sat, 12 Nov 2005 20:24:49 +0200 by phpDocumentor 1.3.0RC3