be inspired by https://metacpan.org/release/Cache-Scalar-WithExpiry