There is also OrientDB , which is a document database written in Java, and can be embedded in an application (without an external server), for example, BDB Java edition. They are using Apache 2.0 .
They also have a key / value based option: OrientKV . I didn’t actually use Orient myself, I just picked it up, so I don’t know if it supports your use case (range queries in key space). However, he advertises himself as very fast.
Although, it seems, Orient DB is not very widely used. I even asked a question asking if anyone has any experience to share.
source share