Public Types | |
| typedef function< void(const Key &key, Result result)> | Callback |
| typedef Uuid | Key |
| typedef function< void(const Key &key, const Json &data, Result result)> | ReadCallback |
| enum | Result { kSuccess = 0, kNotExist, kDuplicated, kInvalidParameter, kInternalError } |
Static Public Member Functions | |
| static void | Create (const Key &key, const Json &data, const WallClock::Duration &expiration_time, const Callback &cb) |
| static void | Create (const Json &data, const WallClock::Duration &expiration_time, const Callback &cb) |
| static Result | CreateSync (const Key &key, const Json &data, const WallClock::Duration &expiration_time) |
| static Result | CreateSync (const Json &data, const WallClock::Duration &expiration_time, Key *key) |
| static void | Delete (const Key &key, const Callback &cb) |
| static Result | DeleteSync (const Key &key) |
| static void | Read (const Key &key, const ReadCallback &cb) |
| static Result | ReadSync (const Key &key, Json *data) |
| static void | Refresh (const Key &key, const WallClock::Duration &expiration_time, const Callback &cb) |
| static Result | RefreshSync (const Key &key, const WallClock::Duration &expiration_time) |
| static void | Write (const Key &key, const Json &data, const WallClock::Duration &expiration_time, const Callback &cb) |
| static Result | WriteSync (const Key &key, const Json &data, const WallClock::Duration &expiration_time) |