forked from fuel/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcache.php
75 lines (61 loc) · 2.1 KB
/
cache.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* Part of the Fuel framework.
*
* @package Fuel
* @version 1.7
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2013 Fuel Development Team
* @link http://fuelphp.com
*/
/**
* NOTICE:
*
* If you need to make modifications to the default configuration, copy
* this file to your app/config folder, and make them in there.
*
* This will allow you to upgrade fuel without losing your custom config.
*/
return array(
/**
* ----------------------------------------------------------------------
* global settings
* ----------------------------------------------------------------------
*/
// default storage driver
'driver' => 'file',
// default expiration (null = no expiration)
'expiration' => null,
/**
* Default content handlers: convert values to strings to be stored
* You can set them per primitive type or object class like this:
* - 'string_handler' => 'string'
* - 'array_handler' => 'json'
* - 'Some_Object_handler' => 'serialize'
*/
/**
* ----------------------------------------------------------------------
* storage driver settings
* ----------------------------------------------------------------------
*/
// specific configuration settings for the file driver
'file' => array(
'path' => '', // if empty the default will be application/cache/
),
// specific configuration settings for the memcached driver
'memcached' => array(
'cache_id' => 'fuel', // unique id to distinquish fuel cache items from others stored on the same server(s)
'servers' => array( // array of servers and portnumbers that run the memcached service
'default' => array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100)
),
),
// specific configuration settings for the apc driver
'apc' => array(
'cache_id' => 'fuel', // unique id to distinquish fuel cache items from others stored on the same server(s)
),
// specific configuration settings for the redis driver
'redis' => array(
'database' => 'default' // name of the redis database to use (as configured in config/db.php)
),
);