summaryrefslogtreecommitdiffstats
path: root/application/config/example/memcached.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-15 17:10:58 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-15 17:12:21 +0200
commit7f0065ddbd80fe32e49cede2d65d231c6ec6f183 (patch)
tree3291f894b163cd75729c15d08be82e9d6d7c4258 /application/config/example/memcached.php
parent92c84158677f30edb8872754d92832a35420952d (diff)
Switch to CI's caching class
This supports more caching backends and doesn't force users to install the memcache extension. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/config/example/memcached.php')
-rw-r--r--application/config/example/memcached.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/application/config/example/memcached.php b/application/config/example/memcached.php
new file mode 100644
index 000000000..29b145ec8
--- /dev/null
+++ b/application/config/example/memcached.php
@@ -0,0 +1,17 @@
+<?php
+
+$config = array(
+ "default" => array(
+ "hostname" => "127.0.0.1",
+ "port" => 11211,
+ "weight" => 1,
+ ),
+ "socket" => array(
+ "hostname" => FCPATH.'/memcached.sock',
+ "port" => 0,
+ "weight" => 2,
+ ),
+);
+
+
+?>