Gaurav,
PropertyContext is mostly used for stats, that's right.
(When it's a PipelineContext, which derives from PropertyContext, then
it does more.)
The semantic of the validity object a Long set to the last modified
time of the resource put in the cache.
So if you put (data, 1234) in the cache, but then query (data, 1235),
the cache will say the value is invalid.
If you query (data, 1234) or (data, 1233), the cache returns the value in cache.
The timestamp usually comes from the last modification time of one or
more files.
-Erik
On Sat, Oct 9, 2010 at 11:29 AM, Gaurav Shah <
[hidden email]> wrote:
>
> I am thinking to do some refactoring of caching to use EZCache/OSCache for
> caching purpose.
> I am trying to understand the current implementation.
> I see that there is a cache interface and that most of it makes sense. The
> part I am having trouble is some of the parameters for add/find methdods.
> I need help in understanding how the PropertyContext , ValidityObject are
> used inside Cache object.
> My understanding is PropertyContext is used for generating statistics. is
> this right?
> and so far not able to figure out how validity object is used.
>
>
> Gaurav Shah
> --
> View this message in context:
http://orbeon-forms-ops-users.24843.n4.nabble.com/caching-explained-tp2969779p2969779.html> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws>
>
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws