Internet Cache.cpp 782 B

12345678910111213141516171819202122
  1. /******************************************************************************/
  2. #include "stdafx.h"
  3. /******************************************************************************/
  4. StoreFiles IC;
  5. /******************************************************************************/
  6. /******************************************************************************/
  7. void StoreFiles::init()
  8. {
  9. if(!initialized)
  10. {
  11. initialized=true;
  12. create("Bin/Store.dat", &WorkerThreads, null, COMPRESS_LZ4, 2);
  13. }
  14. }
  15. ImagePtr StoreFiles::getImage(C Str &url)
  16. {
  17. init(); return ::EE::InternetCache::getImage(url);
  18. }
  19. StoreFiles::StoreFiles() : initialized(false) {}
  20. /******************************************************************************/