cache.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. return [
  3. /*
  4. 'default' => 'file', // allows to specify default cache directl from config file
  5. 'prefix' => 'cache1_', //used to avoid duplicates when using _sanitize_id
  6. 'apcu' => [
  7. 'driver' => 'apcu',
  8. 'default_expire' => 3600,
  9. 'prefix' => 'cache_apcu_', // if set uses this prefix instead of global 'prefix'
  10. ],
  11. 'wincache' => [
  12. 'driver' => 'wincache',
  13. 'default_expire' => 3600,
  14. ],
  15. 'sqlite' => [
  16. 'driver' => 'sqlite',
  17. 'default_expire' => 3600,
  18. 'database' => APPPATH.'cache/ko7-cache.sql3',
  19. 'schema' => 'CREATE TABLE caches(id VARCHAR(127) PRIMARY KEY, tags VARCHAR(255), expiration INTEGER, cache TEXT)',
  20. ],
  21. 'eaccelerator' => [
  22. 'driver' => 'eaccelerator',
  23. ],
  24. 'xcache' => [
  25. 'driver' => 'xcache',
  26. 'default_expire' => 3600,
  27. ],
  28. 'file' => [
  29. 'driver' => 'file',
  30. 'cache_dir' => APPPATH.'cache',
  31. 'default_expire' => 3600,
  32. 'ignore_on_delete' => array(
  33. '.gitignore',
  34. '.git',
  35. '.svn'
  36. )
  37. ],
  38. 'redis' => [
  39. 'driver' => 'redis',
  40. 'default_expire' => 3600,
  41. 'cache_prefix' => 'cache',
  42. 'tag_prefix' => '_tag',
  43. 'servers' => [
  44. 'local' => [
  45. //'host' => 'unix:///var/run/redis/redis.sock',
  46. 'host' => 'localhost',
  47. 'port' => 6379,
  48. 'persistent' => FALSE,
  49. 'prefix' => '',
  50. 'password' => '',
  51. ],
  52. ],
  53. ]
  54. */
  55. ];