aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Memcached.pm
diff options
context:
space:
mode:
authormatthew <matthew>2008-09-16 15:45:09 +0000
committermatthew <matthew>2008-09-16 15:45:09 +0000
commitb7545d35f57d4967cc81f80606132345755ed84e (patch)
tree8fc5bd4c7e7af30df425622deb05a7f191f28f1a /perllib/Memcached.pm
parent3f58bc0b7b6be8018ab2835c35b825fd9be887bb (diff)
Update pins/list as you drag the map, rearrange list display.
Diffstat (limited to 'perllib/Memcached.pm')
-rw-r--r--perllib/Memcached.pm31
1 files changed, 31 insertions, 0 deletions
diff --git a/perllib/Memcached.pm b/perllib/Memcached.pm
new file mode 100644
index 000000000..99ee60be1
--- /dev/null
+++ b/perllib/Memcached.pm
@@ -0,0 +1,31 @@
+#
+# Memcached.pm:
+# Trying out memcached on FixMyStreet
+#
+# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
+# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
+#
+# $Id: Memcached.pm,v 1.1 2008-09-16 15:45:09 matthew Exp $
+#
+
+package Memcached;
+
+use strict;
+use Cache::Memcached;
+
+my $memcache = new Cache::Memcached {
+ 'servers' => [ '127.0.0.1:11211' ],
+ 'namespace' => 'fms',
+ 'debug' => 0,
+ 'compress_threshold' => 10_000,
+};
+
+sub get {
+ $memcache->get(@_);
+}
+
+sub set {
+ $memcache->set(@_);
+}
+
+1;