Sunday, March 22, 2015

Creating In-Memory File Systems with Google’s Jimfs

0 comments
Sometimes when writing an application we might consider using an in-memory file system to speed up data access or to create some kind of cache.

There are different libraries to help us here but one looks especially promising for me because it supports almost every functionality of the Java NIO File APIs added in Java 7 – from creating, reading, deleting files and directory to handling symbolic and hard links or watching directory changes with a WatchService.

In the following short tutorial, I’d like to demonstrate how to setup an in-memory file system within a few minutes and how to access directories and files stored in this file system.

read more here

Leave a Reply

 
All Tech News IN © 2011 DheTemplate.com & Main Blogger .