public void save(PFCObject obj) { try { open(); mDB.put(obj.getKey(), obj); close(); } catch (SnappydbException e) { e.printStackTrace(); } }
public boolean isExist(PFCObject obj) { try { open(); boolean isExist = mDB.exists(obj.getKey()); close(); return isExist; } catch (SnappydbException e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; }