GroupStateStore.h 270 B

12345678910111213141516
  1. #include <GroupState.h>
  2. #ifndef _STATE_CACHE_H
  3. #define _STATE_CACHE_H
  4. class GroupStateStore {
  5. public:
  6. bool get(const GroupId& id, GroupState& state);
  7. void set(const GroupId& id, const GroupState& state);
  8. private:
  9. void evictOldest(GroupState& state);
  10. };
  11. #endif