00001 // -*- indent-tabs-mode: nil -*- 00002 00003 #ifndef FILE_CACHE_HASH_H_ 00004 #define FILE_CACHE_HASH_H_ 00005 00006 #include <string> 00007 00008 namespace Arc { 00009 00011 00012 class FileCacheHash { 00013 00014 private: 00016 static int MAX_MD5_LENGTH; 00018 static int MAX_SHA1_LENGTH; 00019 00020 public: 00022 static std::string getHash(std::string url); 00024 static int maxLength() { 00025 return MAX_SHA1_LENGTH; 00026 } 00027 }; 00028 00029 } // namespace Arc 00030 00031 #endif /*FILE_CACHE_HASH_H_*/