Angelinsky7 / PolicyServer

Mix with PolicyServer.Local and IdentityServer4
Apache License 2.0
3 stars 2 forks source link

Cache policy data #2

Open vishalpatel-te-zz opened 4 years ago

vishalpatel-te-zz commented 4 years ago

When storing policy data in database, it would be great if there are extensions to store them in cache (in memory, redid or something similar) in same way identity server expose ICache

Angelinsky7 commented 4 years ago

this is the intended way, yes. for now there is the architectural idea here : https://github.com/Angelinsky7/PolicyServer/tree/uma/PolicyServer1/Stores/Caching but it's missing the implementation

Angelinsky7 commented 4 years ago

@vishalpatel-te if you have a concrete example how to use ICache in identity server 4 and maybe redis (or another store) it would be great ! Like that i could ensure that i build it the exact same way. For now i only use InMemory Caching strategy so...