#pragma once #include namespace DB { struct RemoteFileCacheWeightFunction { size_t operator()(const RemoteCacheController & cache) const { return cache.getFileSize(); } }; struct RemoteFileCacheReleaseFunction { void operator()(std::shared_ptr controller) { if (controller) controller->close(); } }; }