Cachier 1.0
Fast C++ header only library that provides simple and efficient way to cache computed data for files
|
Cachier is a fast C++ header only library that provides simple and efficient way to cache computed data for files.
How it works
cache_path
, which is the directory where you want to store your cache.unique key
for the file using its properties, like the file name
, size
, last modification time
, and the first 8 bytes of file header info
.cache_path
as a file named using the unique key computed by Cachier.Use Case
Suppose you're developing an audio editor application where you need to perform certain calculations on an audio file each time you open it for editing. This process can take a significant amount of time and resources. To optimize your application, you can use Cachier to store the computed data in cache and retrieve it later whenever you open the same file again.
With Cachier, you can rely on the cached data to be correct and up-to-date, without the need to re-calculate it each time the file is opened. This results in a more efficient and faster user experience for your audio editor application.
How to use it