Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:10:12

0001 /**
0002  * Copyright (c) 2017-present, Facebook, Inc.
0003  * All rights reserved.
0004  *
0005  * This source code is licensed under the BSD-style license found in the
0006  * LICENSE file in the root directory of this source tree.
0007  */
0008 
0009 #pragma once
0010 
0011 #include <chrono>
0012 #include <string>
0013 #include <vector>
0014 
0015 namespace gloo {
0016 
0017 class IStore {
0018  public:
0019   virtual ~IStore() = default;
0020 
0021   virtual void set(const std::string& key, const std::vector<char>& data) = 0;
0022 
0023   virtual std::vector<char> get(const std::string& key) = 0;
0024 
0025   virtual void wait(
0026     const std::vector<std::string>& keys,
0027     const std::chrono::milliseconds& timeout) = 0;
0028 };
0029 
0030 } // namespace gloo