This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/kohana/modules/cache/config/cache.php

71 lines
2.2 KiB
PHP
Raw Normal View History

2010-08-21 04:43:03 +00:00
<?php defined('SYSPATH') or die('No direct script access.');
return array
(
2012-11-09 12:18:50 +00:00
/* 'memcache' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'memcache',
'default_expire' => 3600,
'compression' => FALSE, // Use Zlib compression (can cause issues with integers)
2012-11-09 12:18:50 +00:00
'servers' => array(
'local' => array(
2010-08-21 04:43:03 +00:00
'host' => 'localhost', // Memcache Server
'port' => 11211, // Memcache port number
'persistent' => FALSE, // Persistent connection
'weight' => 1,
'timeout' => 1,
'retry_interval' => 15,
'status' => TRUE,
),
),
'instant_death' => TRUE, // Take server offline immediately on first fail (no retry)
),
2012-11-09 12:18:50 +00:00
'memcachetag' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'memcachetag',
'default_expire' => 3600,
'compression' => FALSE, // Use Zlib compression (can cause issues with integers)
2012-11-09 12:18:50 +00:00
'servers' => array(
'local' => array(
2010-08-21 04:43:03 +00:00
'host' => 'localhost', // Memcache Server
'port' => 11211, // Memcache port number
'persistent' => FALSE, // Persistent connection
'weight' => 1,
'timeout' => 1,
'retry_interval' => 15,
'status' => TRUE,
),
),
'instant_death' => TRUE,
),
2012-11-09 12:18:50 +00:00
'apc' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'apc',
'default_expire' => 3600,
),
2012-11-09 12:18:50 +00:00
'wincache' => array(
2011-05-13 06:00:25 +00:00
'driver' => 'wincache',
'default_expire' => 3600,
),
2012-11-09 12:18:50 +00:00
'sqlite' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'sqlite',
'default_expire' => 3600,
'database' => APPPATH.'cache/kohana-cache.sql3',
'schema' => 'CREATE TABLE caches(id VARCHAR(127) PRIMARY KEY, tags VARCHAR(255), expiration INTEGER, cache TEXT)',
),
2012-11-09 12:18:50 +00:00
'eaccelerator' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'eaccelerator',
),
2012-11-09 12:18:50 +00:00
'xcache' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'xcache',
'default_expire' => 3600,
),
2012-11-09 12:18:50 +00:00
'file' => array(
2010-08-21 04:43:03 +00:00
'driver' => 'file',
'cache_dir' => APPPATH.'cache',
'default_expire' => 3600,
2012-11-09 12:18:50 +00:00
'ignore_on_delete' => array(
'.gitignore',
'.git',
'.svn'
)
2010-08-21 04:43:03 +00:00
)
2012-11-09 12:18:50 +00:00
*/
);