Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CacheApi in play 2.4.x #155

Open
y0t4 opened this issue Sep 4, 2015 · 4 comments
Open

Use CacheApi in play 2.4.x #155

y0t4 opened this issue Sep 4, 2015 · 4 comments

Comments

@y0t4
Copy link

y0t4 commented Sep 4, 2015

Hi

In Play 2.4.x, use play.api.cache.CacheApi (https://www.playframework.com/documentation/2.4.x/ScalaCache).
So, I changed AuthConfig trait and CacheIdContainer like this (y0t4@89ee5f5), and I want to send PR.

But if merge this branch, it will be affected in many places. (tests, documents, samples, ...)
So, I think we may want to prepare branch for updates.

What do you think?

@gakuzzzz
Copy link
Member

gakuzzzz commented Sep 6, 2015

Hi, thanks for proposal!

It seems cool.
I think it is good that CacheIdContainer accepts CacheApi in constructor.
However I dont think it is good that AuthConfig has the cacheApi fields.
Because the users who use another IdContainer implementation instead of CacheIdContainer dont need cacheApi and CacheApi dependencies...

@y0t4
Copy link
Author

y0t4 commented Sep 7, 2015

use another IdContainer implementation instead of CacheIdContainer

Oops. I forgot that pattern.

So, I'll remove cacheApi field from AuthConfig.
And then, idContainer field will be needed to be abstract.
Like this( master...y0t4:use_CacheApi )

Is it ok?

@gakuzzzz
Copy link
Member

sorry too late reply.

Yes, that's right!
thanks!

@gregghz
Copy link

gregghz commented Apr 2, 2016

What's the status of this?

I'd love to be able to use the CacheAPI. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants