old_contents: # -*- coding: utf-8 -*-
  
  
  from dp_tornado.engine.model import Model as dpModel
  
  
  class CacheTestModel(dpModel):
      def flushall_sqlite(self):
          return self.cache.flushall(dsn_or_conn='tests.model_test/drv_sqlite')
  
      def flushdb_sqlite(self, dsn):
          return self.cache.flushdb(dsn_or_conn=dsn)
  
      def get_sqlite(self, key):
          return self.cache.get(key=key, dsn_or_conn='tests.model_test/drv_sqlite')
  
      def set_sqlite(self, key, val):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_sqlite')
  
      def set_sqlite_with_expire(self, key, val, expire_in):
          self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_sqlite_2')
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_sqlite', expire_in=expire_in)
  
      #
  
      def flushall_redis(self):
          return self.cache.flushall(dsn_or_conn='tests.model_test/drv_redis')
  
      def flushdb_redis(self, dsn):
          return self.cache.flushdb(dsn_or_conn=dsn)
  
      def get_redis(self, key):
          return self.cache.get(key=key, dsn_or_conn='tests.model_test/drv_redis')
  
      def set_redis(self, key, val):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_redis')
  
      def set_redis_with_expire(self, key, val, expire_in):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_redis', expire_in=expire_in)
  
new_contents: # -*- coding: utf-8 -*-
  
  
  from dp_tornado.engine.model import Model as dpModel
  
  
  class CacheTestModel(dpModel):
      def flushall_sqlite(self):
          return self.cache.flushall(dsn_or_conn='tests.model_test/drv_sqlite')
  
      def flushdb_sqlite(self, dsn):
          return self.cache.flushdb(dsn_or_conn=dsn)
  
      def get_sqlite(self, key):
          return self.cache.get(key=key, dsn_or_conn='tests.model_test/drv_sqlite')
  
      def set_sqlite(self, key, val):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_sqlite')
  
      def set_sqlite_with_expire(self, key, val, expire_in):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_sqlite', expire_in=expire_in)
  
      #
  
      def flushall_redis(self):
          return self.cache.flushall(dsn_or_conn='tests.model_test/drv_redis')
  
      def flushdb_redis(self, dsn):
          return self.cache.flushdb(dsn_or_conn=dsn)
  
      def get_redis(self, key):
          return self.cache.get(key=key, dsn_or_conn='tests.model_test/drv_redis')
  
      def set_redis(self, key, val):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_redis')
  
      def set_redis_with_expire(self, key, val, expire_in):
          return self.cache.set(key=key, val=val, dsn_or_conn='tests.model_test/drv_redis', expire_in=expire_in)
  
subject: remove unnecessary code.