Added Caching Module

The Caching Module Caches the images that have been extracted and for
persistence writes the images to a cache file.

In the cache file the data is stored by tab separated values

        `%s\t%s\t%s`

the cache is first loaded in the memory ( CACHE_LIST ) during the start of application
and then extracted images are added to the map CACHE_LIST which is
writtern to the cache file before exiting the program.
This commit is contained in:
aditya-K2
2021-11-13 14:37:07 +05:30
parent ee7cc71879
commit 459b6b2f02
3 changed files with 59 additions and 0 deletions

2
cache/testdata/cache.txt vendored Normal file
View File

@@ -0,0 +1,2 @@
Kanye West Life Of Pablo hello/wer.jpg
Niravana Heart Shaped Box hello/iwer.jpg