summaryrefslogtreecommitdiff
path: root/plugins/Sample
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-03 11:27:09 -1000
committerEvan Prodromou <evan@status.net>2010-01-03 11:27:09 -1000
commiteebc5d0d595e20f1ef9f8e7552f1067b7c58f53a (patch)
treeba996950a0db066f93282eb97036cd1b13e729a7 /plugins/Sample
parentd5fb88e1c0a617423a6fd9f9a23141c36245f38c (diff)
add keyTypes() for User_greeting_count
Diffstat (limited to 'plugins/Sample')
-rw-r--r--plugins/Sample/User_greeting_count.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Sample/User_greeting_count.php b/plugins/Sample/User_greeting_count.php
index 77fb9afeb..d9a59770d 100644
--- a/plugins/Sample/User_greeting_count.php
+++ b/plugins/Sample/User_greeting_count.php
@@ -106,6 +106,20 @@ class User_greeting_count extends Memcached_DataObject
}
/**
+ * return key definitions for Memcached_DataObject
+ *
+ * Our caching system uses the same key definitions, but uses a different
+ * method to get them.
+ *
+ * @return array key definitions
+ */
+
+ function keyTypes()
+ {
+ return $this->keys();
+ }
+
+ /**
* Magic formula for non-autoincrementing integer primary keys
*
* If a table has a single integer column as its primary key, DB_DataObject