Пример #1
0
 public void write(BlockPayload block) {
   store.attach(block);
   maybeCache(block);
   dirty.put(block.getPos(), block);
 }
Пример #2
0
 public void remove(BlockPayload block) {
   dirty.remove(block.getPos());
   indexBlockCache.remove(block.getPos());
   store.remove(block);
 }