@asyncio.coroutine
    def put(self, transaction_hash, output_index, output):
        with contextlib.closing(self.connection.cursor()) as cursor:
            cursor.execute("""
                  INSERT OR IGNORE INTO Outputs
                    (TransactionHash, OutputIndex, Value, Script, AssetID, AssetQuantity, OutputType)
                  VALUES (?, ?, ?, ?, ?, ?, ?)
                """,
                (
                    transaction_hash,
                    output_index,
                    output.value,
                    bytes(output.script),
                    output.asset_id,
                    output.asset_quantity,
                    output.output_type.value
                ))
Saves an output in cache.
dataset/ETHPy150Open OpenAssets/colorcore/colorcore/caching.py/SqliteCache.put