Factory
static
Zend_Cache_Core|Zend_Cache_Frontend
factory
(
mixed $frontend,
mixed $backend, [
array $frontendOptions =
array()], [
array $backendOptions =
array()], [
boolean $customFrontendNaming =
false], [
boolean $customBackendNaming =
false], [
boolean $autoload =
false])
-
mixed
$frontend: frontend name (string) or Zend_Cache_Frontend_ object
-
mixed
$backend: backend name (string) or Zend_Cache_Backend_ object
-
array
$frontendOptions: associative array of options for the corresponding frontend constructor
-
array
$backendOptions: associative array of options for the corresponding backend constructor
-
boolean
$customFrontendNaming: if true, the frontend argument is used as a complete class name ; if false, the frontend argument is used as the end of "Zend_Cache_Frontend_[...]" class name
-
boolean
$customBackendNaming: if true, the backend argument is used as a complete class name ; if false, the backend argument is used as the end of "Zend_Cache_Backend_[...]" class name
-
boolean
$autoload: if true, there will no require_once for backend and frontend (usefull only for custom backends/frontends)
Throw an exception
Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic
static void
throwException
(string $msg, [ $e = null])
-
string
$msg: Message for the exception
-
Exception
$e
Frontend Constructor
static
Zend_Cache_Backend
_makeBackend
(
string $backend,
array $backendOptions, [
boolean $customBackendNaming =
false], [
boolean $autoload =
false])
-
string
$backend
-
array
$backendOptions
-
boolean
$customBackendNaming
-
boolean
$autoload
Backend Constructor
static
Zend_Cache_Core|Zend_Cache_Frontend
_makeFrontend
(
string $frontend, [
array $frontendOptions =
array()], [
boolean $customFrontendNaming =
false], [
boolean $autoload =
false])
-
string
$frontend
-
array
$frontendOptions
-
boolean
$customFrontendNaming
-
boolean
$autoload
Normalize frontend and backend names to allow multiple words TitleCased
static string
_normalizeName
(string $name)
-
string
$name: Name to normalize