Results 1 to 3 of 3

Thread: StatelessTicketCache timeToIdle...is it really timeToIdle

  1. #1
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default StatelessTicketCache timeToIdle...is it really timeToIdle

    Ben,

    In the EhCacheBasedTicketCache there is only a property for minutesToIdle with a JavaDoc description that this is how long the item will remain in cache since its last access.

    However, this value is used for both timeToIdle and timeToLive in the EhCache. Therefore this effectively means that the property is timeToLive and not timeToIdle (or does EhCache do something special if they are the same?).

    Would it be possible to either be able to specify both values or rename the timeToIdle to timeToLive?

    We initially had some caching issues with this because we did not realize that it was really timeToLive and not timeToIdle so our clients were sending tickets they thought were still valid but really weren't.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    New York, NY, USA
    Posts
    33

    Default

    Ben,

    I would also refactor EHCache based caches to use new Spring EHCache support to take advantage of configuring caches in Spring's DI environment.
    Regards,
    Dmitriy.

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I would like to remove all Acegi Security provided EH-CACHEs in 0.7 and provide a new cache that integrates with Spring's new EH-CACHE services. We've already pre-warned this will happen in the reference documentation since 0.6.

    Scott, regarding your issue, please feel free to implement the changes locally until 0.7, or you could even write the new Spring integration cache and contribute it if you had unit tests.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •