From eebc5d0d595e20f1ef9f8e7552f1067b7c58f53a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 3 Jan 2010 11:27:09 -1000 Subject: [PATCH] add keyTypes() for User_greeting_count --- plugins/Sample/User_greeting_count.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/Sample/User_greeting_count.php b/plugins/Sample/User_greeting_count.php index 77fb9afebb..d9a59770d3 100644 --- a/plugins/Sample/User_greeting_count.php +++ b/plugins/Sample/User_greeting_count.php @@ -105,6 +105,20 @@ class User_greeting_count extends Memcached_DataObject return array('user_id' => 'K'); } + /** + * 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 *