/* * SPDX-FileCopyrightText: 2020 Stalwart Labs LLC * * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL */ use super::{RedisPool, RedisStore, into_error}; use crate::{Deserialize, write::now}; use deadpool::managed::{Manager, Object, Pool}; use redis::{AsyncCommands, RedisError, RedisResult, RetryMethod, Script}; use std::sync::LazyLock; static INCR_EXPIRE: LazyLock