GithubHelp home page GithubHelp logo

akomakom / ehcache-shiro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehcache/ehcache-shiro

0.0 3.0 0.0 46 KB

Ehcache 3 module for Apache Shiro integration

License: Apache License 2.0

Java 100.00%

ehcache-shiro's Introduction

Ehcache 3 integration in Apache Shiro

This project will provide Ehcache 3 support in Apache Shiro

Build status: Ehcache@Cloudbees

Sample Configurations

To enable it in Shiro application use the following configuration:

[main]
 cacheManager = org.ehcache.integrations.shiro.EhcacheShiroManager
 securityManager.cacheManager = $cacheManager

To set custom Ehcache configuration file use the following configuration:

[main]
 cacheManager = org.ehcache.integrations.shiro.EhcacheShiroManager
 cacheManager.cacheManagerConfigFile = /path/to/custom/configuration.xml
 securityManager.cacheManager = $cacheManager

Cache Configuration Considerations

By default the CacheManager uses default Shiro specific EhCache configuration. If you wish to change the cache settings, or configure your own ehcache.xml or org.ehcache.CacheManager instance, you will need to configure the cache region to ensure that Sessions are handled correctly. You have to ensure that you have defined cache named shiro-activeSessionCache for Shiro’s needs.

Please have a look at the default configuration file before creating your own.

Maven Dependency

<dependency>
  <groupId>org.ehcache.integrations.shiro</groupId>
  <artifactId>shiro-ehcache3</artifactId>
  <version>1.0.0</version>
</dependency>

Shiro Support

This project works with Shiro 1.1.0 and above and requires Ehcache 3.1.3 and above.

Resources

Official Shiro documentation for:

Releases

Latest release

The latest release is 1.0.0.

Changelog

1.0.0

  • The first version was released on October 10th, 2016.

ehcache-shiro's People

Contributors

583479389 avatar azure-pipelines[bot] avatar henri-tremblay avatar ljacomet avatar nenko-tabakov avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.