| 43 | namespace |
| 44 | { |
| 45 | String buildCacheFileName(const String & key, UInt64 file_size) |
| 46 | { |
| 47 | auto escaped_key = escapeForFileName(key); |
| 48 | WriteBufferFromOwnString buf; |
| 49 | writeIntText(file_size, buf); |
| 50 | writeChar('_', buf); |
| 51 | writeString(escaped_key, buf); |
| 52 | writeString(".idx", buf); |
| 53 | return buf.str(); |
| 54 | } |
| 55 | |
| 56 | bool tryParseCacheFileName(const String & file_name, String & key, UInt64 & file_size) |
| 57 | { |
no test coverage detected