def custom_key_func(key, key_prefix, version):
 return (u'CUSTOM-' + u'-'.join([key_prefix, str(version), key]))

def custom_key_func ( key , key_prefix , version ) : return ( u'CUSTOM-' + u'-' . join ( [ key_prefix , str ( version ) , key ] ) )
a customized cache key function .