cache.php 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9
<?php

return array(

	/*
	|--------------------------------------------------------------------------
	| Cache Driver
	|--------------------------------------------------------------------------
	|
10 11 12
	| The name of the default cache driver for your application. Caching can
	| be used to increase the performance of your application by storing any
	| commonly accessed data in memory, a file, or some other storage.
13
	|
14 15 16
	| A variety of awesome drivers are available for you to use with Laravel.
	| Some, like APC, are extremely fast. However, if that isn't an option
	| in your environment, try file or database caching.
17
	|
18
	| Drivers: 'file', 'memcached', 'apc', 'redis', 'database'.
19 20 21 22 23 24 25 26 27 28
	|
	*/

	'driver' => 'file',

	/*
	|--------------------------------------------------------------------------
	| Cache Key
	|--------------------------------------------------------------------------
	|
29 30 31 32
	| This key will be prepended to item keys stored using Memcached and APC
	| to prevent collisions with other applications on the server. Since the
	| memory based stores could be shared by other applications, we need to
	| be polite and use a prefix to uniquely identifier our items.
33 34 35 36 37 38 39
	|
	*/

	'key' => 'laravel',

	/*
	|--------------------------------------------------------------------------
40
	| Cache Database
41 42
	|--------------------------------------------------------------------------
	|
43 44 45 46 47 48 49 50 51 52 53 54
	| When using the database cache driver, this database table will be used
	| to store the cached item. You may also add a "connection" option to
	| the array to specify which database connection should be used.
	|
	*/

	'database' => array('table' => 'laravel_cache'),

	/*
	|--------------------------------------------------------------------------
	| Memcached Servers
	|--------------------------------------------------------------------------
55
	|
56 57 58 59
	| The Memcached servers used by your application. Memcached is a free and
	| open source, high-performance, distributed memory caching system. It is
	| generic in nature but intended for use in speeding up web applications
	| by alleviating database load.
60
	|
61
	| For more information, check out: http://memcached.org
62 63 64
	|
	*/

65 66
	'memcached' => array(

67
		array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
68

69 70
	),	

71
);