mairie360_api_lib 0.6.1

Lib for mairie360 APIs
Documentation
1
2
3
4
5
6
use deadpool_redis::redis::AsyncCommands;
use deadpool_redis::Connection;

pub async fn key_exist(conn: &mut Connection, key: &str) -> Result<bool, redis::RedisError> {
    conn.exists(key).await
}