SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
room_domain_cache_manager.hpp
1//
2// room_domain_cache_manager.hpp
3// skyway
4//
5// Created by iorar on 2025/07/18.
6// Copyright © 2025 NTT DOCOMO BUSINESS, Inc. All rights reserved.
7//
8
9#ifndef SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP
10#define SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP
11
12#include <memory>
13#include <string>
14
15namespace skyway {
16namespace room {
17namespace interface {
18
20template <typename T>
21class RoomDomainCacheManager {
22public:
23 virtual ~RoomDomainCacheManager() = default;
24
25 virtual void CacheRoomDomainInstance(const std::string& id, std::shared_ptr<T> instance) = 0;
26 virtual std::shared_ptr<T> FindCachedRoomDomainInstance(const std::string& id) = 0;
27 virtual void RemoveCachedRoomDomainInstance(const std::string& id) = 0;
28};
30
31} // namespace interface
32} // namespace room
33} // namespace skyway
34
35#endif /* SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP */