icacher

Crates.ioicacher
lib.rsicacher
version0.1.4
sourcesrc
created_at2022-08-16 20:55:03.506943
updated_at2022-08-24 14:06:46.188295
descriptionA minimal crate for caching functions
homepagehttps://github.com/rohankid1/ICacher
repositoryhttps://github.com/rohankid1/ICacher
max_upload_size
id646965
size11,271
(rohankid1)

documentation

README

ICacher

This crate provides 1 new type for caching functions and 1 trait for implementing your own caching struct. Although there are 2 more traits, those are deprecated and should not be used.

Running the same function (that return the same value) over and over again can be inefficient. This lightweight, dependency-free crate attempts to solve this problem by caching each return value. It will only, unless explicitly called to run multiple times or if the value isn't cached, be called once.

This crate will probably receive regular updates from time to time. Updates may or may not have new features in order to keep this lightweight and simple.

GitHub | Crates.io

Commit count: 11

cargo fmt