Skip to content

google/protodatastore-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

ProtoDataStore C++

A simple file-backed proto with an in-memory cache.

Features

  1. Caches proto in RAM after first read for performance.
  2. Uses a checksum to verify integrity of data.
  3. Leverages modern Abseil error handling and memory management.

Usage

#include "protostore/file-storage.h"
#include "protostore/proto-data-store.h"

FileStorage storage;
ProtoDataStore<TestProto> pds(storage, testfile);

MyProto myproto;
myproto.set_value("hi");
absl::Status result = pds.Write(myproto);
if (!result.ok()) // error handling

Compared to Jetpack DataStore

This library is a C++ implementation from the same origin as Jetpack DataStore. Unlike that library, it does not support concurrent writes and the on-disk format is incompatible.

About

A simple file-backed proto with an in-memory cache

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published