Skip to main content

put

Function put 

Source
pub async fn put<T: Serialize>(
    key: &str,
    value: &T,
    ttl: Duration,
) -> Result<(), AppError>
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).