Esempio n. 1
0
class PagingSearchListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(["search"])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_profile")
Esempio n. 2
0
class HubsKeyConstructor(KeyConstructor):
    unique_method_id = bits.UniqueMethodIdKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    format = bits.FormatKeyBit()
    language = bits.LanguageKeyBit()
    query_params = bits.QueryParamsKeyBit()
    pagination = bits.PaginationKeyBit()
Esempio n. 3
0
class PagingNotificationListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(["search", "ordering", "type"])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_notification")
Esempio n. 4
0
class CustomListKeyConstructor(DefaultKeyConstructor):
    """ For calculating the key of the cache """
    all_query_params = bits.QueryParamsKeyBit('*')
    kwargs = bits.KwargsKeyBit('*')
    pagination = bits.PaginationKeyBit()
    list_sql = bits.ListSqlQueryKeyBit()
    updated_at = UpdatedAtKeyBit()
Esempio n. 5
0
class PagingPrivatePostListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(['ordering'])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit('api_updated_post')
Esempio n. 6
0
class ObjectKeyConstructor(constructors.DefaultKeyConstructor):
    """Cache key generator for object/detail views."""
    retrieve_sql = bits.RetrieveSqlQueryKeyBit()
    updated_at = UpdatedAtKeyBit()
    kwargs = bits.KwargsKeyBit()
    params = bits.QueryParamsKeyBit()
    unique_view_id = bits.UniqueMethodIdKeyBit()
    format = bits.FormatKeyBit()
Esempio n. 7
0
class ListKeyConstructor(constructors.DefaultKeyConstructor):
    """Cache key generator for list views."""
    list_sql = bits.ListSqlQueryKeyBit()
    pagination = bits.PaginationKeyBit()
    updated_at = UpdatedAtKeyBit()
    kwargs = bits.KwargsKeyBit()
    params = bits.QueryParamsKeyBit()
    unique_view_id = bits.UniqueMethodIdKeyBit()
    format = bits.FormatKeyBit()
Esempio n. 8
0
class PagingPrivateTopicListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(['search', 'ordering'])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
Esempio n. 9
0
class QueryParamsKeyConstructor(KeyConstructor):
    unique_method_id = bits.UniqueMethodIdKeyBit()
    all_query_params = bits.QueryParamsKeyBit()
Esempio n. 10
0
class BaseKeyConstructor(constructors.DefaultKeyConstructor):
    updated = MaterializedViewLastUpdateKeyBit()
    format = bits.FormatKeyBit()
    language = bits.LanguageKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    query_params = bits.QueryParamsKeyBit()
Esempio n. 11
0
class PagingNotificationListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(['search', 'ordering', 'type'])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    user = bits.UserKeyBit()
Esempio n. 12
0
class PagingPrivateTopicListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(["search", "ordering"])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_topic")
Esempio n. 13
0
class PagingPrivateTopicListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(['search', 'ordering'])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit('api_updated_topic')
Esempio n. 14
0
class PagingSearchListKeyConstructor(DefaultKeyConstructor):
    pagination = DJRF3xPaginationKeyBit()
    search = bits.QueryParamsKeyBit(['search'])
    list_sql_query = bits.ListSqlQueryKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()
    updated_at = UpdatedAtKeyBit('api_updated_tag')
Esempio n. 15
0
class ShoutitDefaultCacheKeyConstructor(KeyConstructor):
    unique_method_id = bits.UniqueMethodIdKeyBit()
    format = bits.FormatKeyBit()
    language = bits.LanguageKeyBit()
    query_params = bits.QueryParamsKeyBit()
Esempio n. 16
0
class UserListKeyConstructor(KeyConstructor):
    params_bit = bits.QueryParamsKeyBit()
    args_bit = bits.ArgsKeyBit()
    kwargs_bit = bits.KwargsKeyBit()
Esempio n. 17
0
class CacheKeyConstructor(DefaultKeyConstructor):
    params = bits.QueryParamsKeyBit()
    pagination = bits.PaginationKeyBit()
    args = bits.ArgsKeyBit()
    kwargs = bits.KwargsKeyBit()
Esempio n. 18
0
class PagingImageListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(['search', 'ordering'])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit('api_updated_image')
class PersonKeyConstructor(DefaultKeyConstructor):
    authenticated = AuthenticatedKeyBit()
    unique_view_id = bits.UniqueMethodIdKeyBit()
    format = bits.FormatKeyBit()
    route = bits.QueryParamsKeyBit()
Esempio n. 20
0
class RoutingEdgeListKeyConstructor(DefaultKeyConstructor):
    route = bits.QueryParamsKeyBit(["from", "to", "accessible"])
Esempio n. 21
0
class PagingPrivatePostListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(["ordering"])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_post")
Esempio n. 22
0
class PostListKeyConstructor(DefaultKeyConstructor):
    params_bit = bits.QueryParamsKeyBit()
    args_bit = bits.ArgsKeyBit()
    kwargs_bit = bits.KwargsKeyBit()
Esempio n. 23
0
class PagingImageListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(["search", "ordering"])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_image")
Esempio n. 24
0
class ContestTaskSolvedKeyConstructor(DefaultKeyConstructor):
    params_bit = bits.QueryParamsKeyBit()
    args_bit = bits.ArgsKeyBit()
    kwargs_bit = bits.KwargsKeyBit()
Esempio n. 25
0
class QueryKeyConstructor(DefaultObjectKeyConstructor):
    params_query = bits.QueryParamsKeyBit(['officer'])
Esempio n. 26
0
class ScoreboardKeyConstructor(DefaultKeyConstructor):
    params_bit = bits.QueryParamsKeyBit()
    args_bit = bits.ArgsKeyBit()
    kwargs_bit = bits.KwargsKeyBit()
Esempio n. 27
0
class PagingParticipantListKeyConstructor(PagingListKeyConstructor):
    search = bits.QueryParamsKeyBit(["ordering"])
    user = bits.UserKeyBit()
    updated_at = UpdatedAtKeyBit("api_updated_user_gallery")
Esempio n. 28
0
class MyKeyConstructor(KeyConstructor):
    all_query_params = bits.QueryParamsKeyBit()
    unique_view_id = bits.UniqueViewIdKeyBit()