pub async fn set<S: CacheStore, T: Serialize>(
store: &S,
key: &str,
value: &T,
ttl: Option<Duration>,
) -> CacheResult<()>Expand description
Set a typed value in the cache.
A ttl of None means “unspecified” and lets the store fall back to its
configured default_ttl. Use set_forever to store an entry that
genuinely never expires.