Skip to content

alim-akbashev/mongomap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongomap

Lightweigth wrapper around ConcurrentHashMap. Provides ability to persist HashMap state to mongodb

Example

MongoClient client = new MongoClient("localhost");
DBCollection collection = ...

ConcurrentMongoMap<String, String> map = new ConcurrentMongoMap<String, String>();
map.setMongoCollection(collection);
map.load();

map.store("foo", "bar");

...
...
...

ConcurrentMongoMap<String, String> map = new ConcurrentMongoMap<String, String>();
map.setMongoCollection(collection);
map.load();

String barString = map.get("foo");

About

Persistent ConcurrentHashMap backed by mongodb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages