1 Reply Latest reply: Mar 14, 2013 8:49 AM by user639604 RSS

    Set a new expiry delay for entries added in the cache by a read through

    996732
      Hi,

      I have an application that uses an Oracle Coherence cache backed by a database. Each item that is added in the cache must have a custom expiry delay computed from its content.

      Is it possible to set a new expiry delay for the entries loaded in the cache from the database by a read through operation?

      I tried setting a new expiry delay in the load method of the BinaryEntryStore, but it is ignored and the default expiry of the corresponding cache is used instead. Also I tried using a MapTrigger, but the entries added in the cache by a read through operation are not intercepted by the MapTrigger.

      Thanks,
      Adrian