1 #ifndef _ACCESS_RX_CACHE_H
2 #define _ACCESS_RX_CACHE_H 1
8 #include <unordered_map>
15 AccessRXCache(IOUringEngine *engine, bool check_visibility)
16 : engine(engine), check_visibility(check_visibility) {}
17 void check_access(const char *filename, bool allow_async, std::function<void(bool)> cb);
20 std::unordered_map<std::string, bool> cache;
23 std::function<void(bool)> cb;
25 std::map<std::string, std::vector<PendingStat>> pending_stats;
26 IOUringEngine *engine;
28 bool check_visibility;
31 #endif // !defined(_ACCESS_RX_CACHE_H)