COMMUNITY

Redis and Mysql use together in Haxe?

Redis and Mysql use together in Haxe?

I want to use redis as caches server synchronize to mysql.

and it’s seem only few Redis’s library ,only target for Neko vm or node.js

any suggestion?

Consider targetting PHP, which has builting support for MySQL (externs available) and has various external libraries for redis (e.g.
https://github.com/nrk/predis). For any external PHP library you can create externs
BTW PHP also has solid support for memcache: https://www.php.net/manual/en/book.memcached.php

thanks ,but I want to try Haxe native library ,such like Hashlink ,I will try to php as soon as possible.

current try to use Sqlite.open(":memory:")