Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
s3-binary-cache-store.hh
Go to the documentation of this file.
1#pragma once
3
5
6#include <atomic>
7
8namespace nix {
9
10class S3BinaryCacheStore : public virtual BinaryCacheStore
11{
12protected:
13
14 using BinaryCacheStore::BinaryCacheStore;
15
16public:
17
18 struct Stats
19 {
20 std::atomic<uint64_t> put{0};
21 std::atomic<uint64_t> putBytes{0};
22 std::atomic<uint64_t> putTimeMs{0};
23 std::atomic<uint64_t> get{0};
24 std::atomic<uint64_t> getBytes{0};
25 std::atomic<uint64_t> getTimeMs{0};
26 std::atomic<uint64_t> head{0};
27 };
28
29 virtual const Stats & getS3Stats() = 0;
30};
31
32void registerS3BinaryCacheStore();
33
34}
Definition s3-binary-cache-store.hh:11
Definition s3-binary-cache-store.hh:19