-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathHttpCache.h
More file actions
63 lines (48 loc) · 1.02 KB
/
HttpCache.h
File metadata and controls
63 lines (48 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Copyright 2017 Sony Corporation
*/
#ifndef EASYHTTPCPP_HTTPCACHE_H_INCLUDED
#define EASYHTTPCPP_HTTPCACHE_H_INCLUDED
#include <string>
#include "Poco/AutoPtr.h"
#include "Poco/Path.h"
#include "Poco/RefCountedObject.h"
#include "Poco/Path.h"
#include "easyhttpcpp/HttpExports.h"
namespace easyhttpcpp {
class EASYHTTPCPP_HTTP_API HttpCache : public Poco::RefCountedObject {
public:
typedef Poco::AutoPtr<HttpCache> Ptr;
/**
*
*/
virtual ~HttpCache();
/**
*
* @param directory
* @param maxSize
* @return
*/
static HttpCache::Ptr createCache(const Poco::Path& path, size_t maxSize);
/**
*
* @return
*/
virtual const Poco::Path& getPath() const = 0;
/**
*
*/
virtual void evictAll() = 0;
/**
*
* @return
*/
virtual size_t getMaxSize() const = 0;
/**
*
* @return
*/
virtual size_t getSize() = 0;
};
} /* namespace easyhttpcpp */
#endif /* EASYHTTPCPP_HTTPCACHE_H_INCLUDED */