#pragma once ///@file #include "binary-cache-store.hh" #include namespace nix { class S3BinaryCacheStore : public virtual BinaryCacheStore { protected: S3BinaryCacheStore(const Params & params); public: struct Stats { std::atomic put{0}; std::atomic putBytes{0}; std::atomic putTimeMs{0}; std::atomic get{0}; std::atomic getBytes{0}; std::atomic getTimeMs{0}; std::atomic head{0}; }; virtual const Stats & getS3Stats() = 0; }; void registerS3BinaryCacheStore(); }