What is the best python library to perform create, put and get cache operations in apache ignite?

In my application, multiple systems are going to do put and get operations and hence, database locks may be needed.

2 answers

  • answered 2018-04-17 07:30 Andrei Aleksandrov

    Ignite is Memcached compliant which enables users to store and retrieve distributed data from Ignite cache using any Memcached compatible client.

    For example you can use pylibmc (Python client for memcached) as described here:


  • answered 2018-04-17 09:05 Denis

    Ignite supports ODBC connections. You can build an ODBC driver for your system and use pyodbc library to execute SQL queries in Apache Ignite.

    Here is documentation on building Ignite ODBC driver: https://apacheignite-sql.readme.io/docs/odbc-driver#building-odbc-driver

    Here is an example of how to connect to Ignite over ODBC from Python:

    import pyodbc
    cnxn = pyodbc.connect(DRIVER='Apache Ignite', ADDRESS='localhost', SCHEMA='PUBLIC', autocommit=True)
    cnxn.execute('select * from Person')