cache.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /**
  22. * ----------------------------------------------------------------------
  23. * global settings
  24. * ----------------------------------------------------------------------
  25. */
  26. // default storage driver
  27. 'driver' => 'file',
  28. // default expiration (null = no expiration)
  29. 'expiration' => null,
  30. /**
  31. * Default content handlers: convert values to strings to be stored
  32. * You can set them per primitive type or object class like this:
  33. * - 'string_handler' => 'string'
  34. * - 'array_handler' => 'json'
  35. * - 'Some_Object_handler' => 'serialize'
  36. */
  37. /**
  38. * ----------------------------------------------------------------------
  39. * storage driver settings
  40. * ----------------------------------------------------------------------
  41. */
  42. // specific configuration settings for the file driver
  43. 'file' => array(
  44. 'path' => '', // if empty the default will be application/cache/
  45. ),
  46. // specific configuration settings for the memcached driver
  47. 'memcached' => array(
  48. 'cache_id' => 'fuel', // unique id to distinquish fuel cache items from others stored on the same server(s)
  49. 'servers' => array( // array of servers and portnumbers that run the memcached service
  50. 'default' => array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100)
  51. ),
  52. ),
  53. // specific configuration settings for the apc driver
  54. 'apc' => array(
  55. 'cache_id' => 'fuel', // unique id to distinquish fuel cache items from others stored on the same server(s)
  56. ),
  57. // specific configuration settings for the redis driver
  58. 'redis' => array(
  59. 'database' => 'default' // name of the redis database to use (as configured in config/db.php)
  60. ),
  61. );