Parent: [434355] (diff)

Download this file

ohmetacache.hxx    17 lines (12 with data), 483 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#ifndef _OHMETACACHE_H_X_INCLUDED_
#define _OHMETACACHE_H_X_INCLUDED_
#include <string>
#include <unordered_map>
typedef std::unordered_map<std::string, std::string> mcache_type;
/**
* Saving and restoring the metadata cache to/from disk
*/
extern void dmcacheSetOpts(unsigned int slptime);
extern bool dmcacheSave(const std::string& fn, const mcache_type& cache);
extern bool dmcacheRestore(const std::string& fn, mcache_type& cache);
#endif /* _OHMETACACHE_H_X_INCLUDED_ */