pub async fn put<T>(key: &str, value: &T, ttl: Duration) -> Result<(), AppError>where
T: Serialize,Expand description
Stores value under key, serialized as JSON, expiring after ttl.
Overwrites any existing entry under the same key (Laravel’s own put()
semantics - not an error to reuse a key).