/shiro-redisson

Redis based implementations of Shiro Cache and Session, using redisson as rich redis client.

Primary LanguageJavaMIT LicenseMIT

shiro-redisson

Travis Coverage Status license

Redis based implementations of Apache Shiro's Cache and Session, using redisson as rich redis client.

compatible with:

  • shiro 1.3.x
  • redisson 2.x / 3.x
  • redis 4.x

Download

Maven dependency:

<dependency>
    <groupId>com.github.streamone</groupId>
    <artifactId>shiro-redisson</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

Features

  • Shiro Cache implementation

    • support cache config according to Spring Cache specification
  • Shiro Session implementation

    • serialize attributes of session individually as minimum unit
    • package redis commands in lua script for high performance (reduce round-trip time) and supporting transaction
  • Others

    • support several serialization solutions: JDK Serialization, JSON, Smile, MsgPack, FST and so on
    • support common redis servers mode, including single server, master-salve replication, sentinel, cluster