示例#1
0
def get_measure(measure_id):
    return cache.cache_get(_get_measure_cache_key,
                           dbget_measure,
                           args=(measure_id,))
示例#2
0
def get_measures_for_exercise_type(exercise_type_id):
    return cache_get(_get_measure_for_exercise_type_cache_key,
                     dbget_measures_for_exercise_type,
                     args=(exercise_type_id,))
示例#3
0
def get_exercise_type(exercise_type_id):
    return cache.cache_get(_get_exercise_type_cache_key,
                           dbget_exercise_type,
                           args=(exercise_type_id,))
示例#4
0
def get_all_exercise_types():
    return cache_get(_get_all_exercise_types_cache_key,
                     dbget_all_exercise_types)
示例#5
0
def get_data_points_for_entry(entry_id):
    return cache.cache_get(_get_data_points_for_entry_cache_key,
                           dbget_data_points_for_entry,
                           args=(entry_id,))
示例#6
0
def get_entries_for_user(uid):
    return translate_many(cache.cache_get(_get_entries_for_user_cache_key,
                                          dbget_entries_for_user,
                                          args=(uid,)))