blob: 5c212264bd2b85e076e3ecfce37fa4dfce8d330e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <Storages/Cache/RemoteCacheController.h>
namespace DB
{
struct RemoteFileCacheWeightFunction
{
size_t operator()(const RemoteCacheController & cache) const { return cache.getFileSize(); }
};
struct RemoteFileCacheReleaseFunction
{
void operator()(std::shared_ptr<RemoteCacheController> controller)
{
if (controller)
controller->close();
}
};
}
|