Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[12:46:52 CDT(-0500)] <peterjhart> good point

[13:08:04 CDT(-0500)] <athena> EricDalquist: with the spring ehcache library, how do i configure what's used as a cache key?

[13:08:25 CDT(-0500)] <athena> like i have a method getMap(PortletRequest request), and i'd like to it just cache the result ignoring the portlet request parameter

[13:08:29 CDT(-0500)] <athena> since it's the same for all users

[13:09:06 CDT(-0500)] <EricDalquist> oh ... um

[13:09:21 CDT(-0500)] <EricDalquist> heh I'm not sure you can do that (tongue)

[13:09:25 CDT(-0500)] <EricDalquist> there is @CacheKey

[13:09:33 CDT(-0500)] <EricDalquist> but that lists which parameters are included

[13:09:46 CDT(-0500)] <EricDalquist> I'm not sure you can exclude a single param

[13:09:52 CDT(-0500)] <EricDalquist> or maybe it is @CacheKeyParam

[13:10:04 CDT(-0500)] <EricDalquist> I get confused now with my focus being on the jsr107 work

[13:10:08 CDT(-0500)] <athena> ok

[13:10:24 CDT(-0500)] <athena> i haven't actually ever used the library because every single thing i want to cache has portlet request as a param (tongue)

[13:10:26 CDT(-0500)] <athena> just wondered

[13:11:00 CDT(-0500)] <athena> if i use @CacheKey can i exclude the portlet request by listing what i do want?

[13:11:05 CDT(-0500)] <athena> or not so much?

[13:11:21 CDT(-0500)] <EricDalquist> well it is a parameter lvel annotation

[13:11:37 CDT(-0500)] <EricDalquist> so you would have done something like method(@CacheKey String foo, Object bar)

[13:11:42 CDT(-0500)] <EricDalquist> and foo would be part of the key

[13:11:57 CDT(-0500)] <EricDalquist> but that doesn't work when you want to exclude the only argument

[13:12:23 CDT(-0500)] <athena> ah gotcha

[13:12:26 CDT(-0500)] <athena> that makes sense

[13:12:27 CDT(-0500)] <athena> ok (smile)

[13:48:46 CDT(-0500)] <athena> i must be stupid for trying to reinstall eclipse while traveling

[16:16:49 CDT(-0500)] <EricDalquist> athena: you around?

[16:16:57 CDT(-0500)] <athena> yep

[16:17:05 CDT(-0500)] <athena> what's up?

[16:17:06 CDT(-0500)] <EricDalquist> just pushed a bit of cleanup to the courses portlet

[16:17:23 CDT(-0500)] <EricDalquist> changed the approach for the course/course summary wrapper objects

[16:17:34 CDT(-0500)] <EricDalquist> so that we don't have to depend on an sun impl jar

[16:17:57 CDT(-0500)] <EricDalquist> I'm going to be working on integrated our WS client now

[16:18:01 CDT(-0500)] <EricDalquist> and then our UI customizations

[16:18:10 CDT(-0500)] <EricDalquist> but those will live on a uw branch in our github repo

[16:18:14 CDT(-0500)] <athena> sounds good

[16:18:19 CDT(-0500)] <EricDalquist> but I'll be sure to push over other fixes if we find issues

[16:18:26 CDT(-0500)] <athena> awesome

[16:18:26 CDT(-0500)] <EricDalquist> wanted to thank you again for the help on this

[16:18:36 CDT(-0500)] <athena> sure thing (smile) glad we'll actually have someone running it

[16:18:45 CDT(-0500)] <athena> are you going to be able to contribute CSS for the grades view?

[16:19:56 CDT(-0500)] <EricDalquist> yes I think so

[16:20:02 CDT(-0500)] <EricDalquist> but probably not exactly what we have

[16:20:08 CDT(-0500)] <EricDalquist> since our view is going to be just grades

[16:20:10 CDT(-0500)] <EricDalquist> no courses

[16:20:19 CDT(-0500)] <EricDalquist> at least for now