Java 脱机访问面向缓存的数据库

Java 脱机访问面向缓存的数据库,java,caching,orientdb,offline,Java,Caching,Orientdb,Offline,我有一个远程orientdb服务器,根据文档 如果我不在线,似乎可以访问缓存。我找了很长时间,但找不到方法。我想离线提供一个ODataBaseDocumentTx,但如果我尝试 ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/test").open("root","root") ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost

我有一个远程orientdb服务器,根据文档 如果我不在线,似乎可以访问缓存。我找了很长时间,但找不到方法。我想离线提供一个
ODataBaseDocumentTx
,但如果我尝试

ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/test").open("root","root")
ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/test").open("root","root")
我有一个例外:

无法创建到远程服务器地址的连接


这在我的例子中是显而易见的。

您需要服务器联机才能使用它。 缓存需要远程服务器联机才能正常工作

您提供的代码试图与数据库连接,没有它就无法工作: