@classmethod
def get_all(self, limit=None, order='-updated', filterby=None, update_cache=False):
    KEY = ('%s|%s|%s' % (Feature.DEFAULT_MEMCACHE_KEY, order, limit))
    if (filterby is not None):
        s = ('%s%s' % (filterby[0], filterby[1])).replace(' ', '')
        KEY += ('|%s' % s)
    feature_list = memcache.get(KEY)
    if ((feature_list is None) or update_cache):
        query = Feature.all().order(order)
        if filterby:
            query.filter(filterby[0], filterby[1])
        features = query.fetch(limit)
        feature_list = [f.format_for_template() for f in features]
        memcache.set(KEY, feature_list)
    return feature_list
@classmethod
def get_all(self, limit=None, order='-updated', filterby=None, update_cache=False):
    KEY = ('%s|%s|%s' % (Feature.DEFAULT_MEMCACHE_KEY, order, limit))
    if (filterby is not None):
        s = ('%s%s' % (filterby[0], filterby[1])).replace(' ', )
        KEY += ('|%s' % s)
    feature_list = memcache.get(KEY)
    if ((feature_list is None) or update_cache):
        query = Feature.all().order(order)
        if filterby:
            query.filter(filterby[0], filterby[1])
        features = query.fetch(limit)
        feature_list = [f.format_for_template() for f in features]
        memcache.set(KEY, feature_list)
    return feature_list