Struct teloxide::dispatching::dialogue::RedisStorage
source · pub struct RedisStorage<S> { /* private fields */ }
Available on crate feature
redis-storage
only.Expand description
A dialogue storage based on Redis.
Implementations§
source§impl<S> RedisStorage<S>
impl<S> RedisStorage<S>
pub async fn open(
url: impl IntoConnectionInfo,
serializer: S
) -> Result<Arc<Self>, RedisStorageError<Infallible>>
Trait Implementations§
source§impl<S, D> Storage<D> for RedisStorage<S>where
S: Send + Sync + Serializer<D> + 'static,
D: Send + Serialize + DeserializeOwned + 'static,
<S as Serializer<D>>::Error: Debug + Display,
impl<S, D> Storage<D> for RedisStorage<S>where
S: Send + Sync + Serializer<D> + 'static,
D: Send + Serialize + DeserializeOwned + 'static,
<S as Serializer<D>>::Error: Debug + Display,
type Error = RedisStorageError<<S as Serializer<D>>::Error>
source§fn remove_dialogue(
self: Arc<Self>,
ChatId: ChatId
) -> BoxFuture<'static, Result<(), Self::Error>>
fn remove_dialogue(
self: Arc<Self>,
ChatId: ChatId
) -> BoxFuture<'static, Result<(), Self::Error>>
Removes a dialogue indexed by
chat_id
. Read more