code: def cache(self, name, cache_class=Cache,
                identity_generator_class=IdentityGenerator,
                compressor_class=Compressor,
                serializer_class=Serializer, *args, **kwargs):
          
          return cache_class(self, app=name,
                             identity_generator_class=identity_generator_class,
                             compressor_class=compressor_class,
                             serializer_class=serializer_class,
                             *args, **kwargs)
docs: Return a cache object using default identity generator,
          serializer and compressor.
  
          ``name`` is used to identify the series of your cache
          ``cache_class`` Cache is for normal use and HerdCache
          is used in case of Thundering Herd Problem
          ``identity_generator_class`` is the class used to generate
          the real unique key in cache, can be overwritten to
          meet your special needs. It should provide `generate` API
          ``compressor_class`` is the class used to compress cache in redis,
          can be overwritten with API `compress` and `decompress` retained.
          ``serializer_class`` is the class used to serialize
          content before compress, can be overwritten with API
          `serialize` and `deserialize` retained.