@ Override public Cache getCache ( String id ) { Exceptions . checkNotClosed ( this . closed . get ( ) , this ) ; RocksDBCache result ; boolean isNew = false ; synchronized ( this . caches ) { result = this . caches . get ( id ) ; if ( result == null ) { result = new RocksDBCache ( id , this . config , this :: cacheClosed ) ; this . caches . put ( id , result ) ; isNew = true ; } } if ( isNew ) { result . initialize ( ) ; } return result ; }
region CacheFactory Implementation