Actix Redis Save Abandoned

Redis actor and middleware for Actix

Project README

Actix redis Build Status codecov

Redis integration for actix framework.

NOTICE: This repository has been archived. Please visit instead.


Redis session backend

Use redis as session storage.

You need to pass an address of the redis server and random value to the constructor of RedisSessionBackend. This is private key for cookie session, When this value is changed, all session data is lost.

Note that whatever you write into your session is visible by the user (but not modifiable).

Constructor panics if key length is less than 32 bytes.

use actix_web::{App, HttpServer, web, middleware};
use actix_web::middleware::session::SessionStorage;
use actix_redis::RedisSessionBackend;

async fn main() -> std::io::Result {
    HttpServer::new(|| App::new()
        // enable logger
        // cookie session middleware
            RedisSessionBackend::new("", &[0; 32])
        // register simple route, handle all methods


This project is licensed under either of

at your option.

Code of Conduct

Contribution to the actix-redis crate is organized under the terms of the Contributor Covenant, the maintainer of actix-redis, @fafhrd91, promises to intervene to uphold that code of conduct.

Open Source Agenda is not affiliated with "Actix Redis" Project. README Source: actix/actix-redis
Open Issues
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating