java - Spring Security UserDetails cache -
i trying cache userdetails in spring security our rest api. there plenty examples using ehcachebasedusercache few springcachebasedusercache. springcachebasedusercache seems new( after 3.1 spring security?). difference between springcachebasedusercache , ehcachebasedusercache? when should choose 1 on other? lot.
ehcachebasedusercache uses, name implies, used ehcache library actual caching.
springcachebasedusercache uses spring's own caching abstraction. can example plugin jcache, a.k.a. jsr-107. reason find fewer examples of is newer, jsr-107 did not reach final release until 18 mar, 2014. note jsr-107 api, not actual implementation.
how choose? ehcache mature , well-tested. jcache has future jsr standards process.
Comments
Post a Comment