-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALL
More file actions
31 lines (25 loc) · 1.26 KB
/
INSTALL
File metadata and controls
31 lines (25 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Install through PEAR:
pear channel-discover zend.googlecode.com/svn
pear channel-discover empower.github.com/pirum
pear install empower/EC_Cache
Example usage of the mock backend:
require_once 'EC/Cache/Backend/Mock.php';
$cache = Zend_Cache::factory(
'Core', // Frontend name
'EC_Cache_Backend_Mock', // Backend (full) name
$frontendOptions, // Optional frontend options
$backendOptions, // Optional backend options
false, // Not using a custom frontend class name
true // Using a custom backend class name
);
Example usage of the multi backend:
require_once 'EC/Cache/Frontend/CoreMulti.php';
require_once 'EC/Cache/Backend/LibmemcachedMulti.php';
$cache = Zend_Cache::factory(
'CoreMulti', // Frontend full name
'EC_Cache_Backend_LibmemcachedMulti', // Backend full name
$frontendOptions, // Optional frontend options
$backendOptions, // Optional backend options
true, // Using custom frontend class name
true // Using custom backend class name
);