Beispiel #1
0
 public AnnotationRecordCache Get(int index)
 {
     return(Serialization.Deserialize <AnnotationRecordCache>(_db.Get(Serialization.Serialize(index))));
 }
Beispiel #2
0
 public void Push(AnnotationRecordCache record)
 {
     _batch.Put(Serialization.Serialize(_size), Serialization.Serialize(record));
     ++_size;
 }
Beispiel #3
0
 public void Push(AnnotationRecordCache record)
 {
     _db.Put(Serialization.Serialize(_size), Serialization.Serialize(record), _writeOptions);
     ++_size;
 }