示例#1
0
 def get_parser_class(self):
     parser_class = self.options.get('PARSER_CLASS', None)
     if parser_class is None:
         return DefaultParser
     return import_class(parser_class)
示例#2
0
 def get_serializer_class(self):
     serializer_class = self.options.get(
         'SERIALIZER_CLASS', 'redis_cache.serializers.PickleSerializer')
     return import_class(serializer_class)
示例#3
0
 def get_compressor_class(self):
     compressor_class = self.options.get(
         'COMPRESSOR_CLASS', 'redis_cache.compressors.NoopCompressor')
     return import_class(compressor_class)
示例#4
0
 def get_connection_pool_class(self):
     pool_class = self.options.get('CONNECTION_POOL_CLASS',
                                   'redis.ConnectionPool')
     return import_class(pool_class)
示例#5
0
 def get_parser_class(self):
     parser_class = self.options.get('PARSER_CLASS', None)
     if parser_class is None:
         return DefaultParser
     return import_class(parser_class)
示例#6
0
 def get_compressor_class(self):
     compressor_class = self.options.get(
         'COMPRESSOR_CLASS',
         'redis_cache.compressors.NoopCompressor'
     )
     return import_class(compressor_class)
示例#7
0
 def get_serializer_class(self):
     serializer_class = self.options.get(
         'SERIALIZER_CLASS',
         'redis_cache.serializers.PickleSerializer'
     )
     return import_class(serializer_class)
示例#8
0
 def get_connection_pool_class(self):
     pool_class = self.options.get(
         'CONNECTION_POOL_CLASS',
         'redis.ConnectionPool'
     )
     return import_class(pool_class)