def _get_collection_memcache_key(collection_id, version=None):
    """Returns a memcache key for an collection."""
    if version:
        return 'collection-version:%s:%s' % (collection_id, version)
    else:
        return 'collection:%s' % collection_id