CACHE APP: README.md
CACHE APP IS A STABLE CACHE REMEMBER CRATE MIGRATION
| Resource | Link |
|---|---|
| Crate version | |
| Documentation | Cargo docs |
[0.1.0] - 2023-06-11
Cache App is a simple caching library for rust that allows you to cache the result of a function call for a given amount of time. Inspired in laravel's cache remember.
The remember function uses an async function as one of its parameters, which function must return a value that has Deserialize implemented, Serialize for serde. If it has a cached value, it returns the value without executing the function, otherwise it will execute the function and store the result in cache for future queries.
[0.1.2] - 2023-06-11
REMOVE INNECESARY ASYNC AND RETURN RESULT IN forget(), forget_all() and purge() functions.
[0.1.3] - 2023-06-11
Changed Box dyn std::error::Error so that it now accepts functions that return any Error as long as it has the Display trait implemented. Change Mutex to RwLock to allow multiple reads at the same time.
EXAMPLE
use Cache;
use thread;
use Duration;
use ;
use tokio;
pub async