Class TouchCommand

java.lang.Object
org.infinispan.commands.read.AbstractDataCommand
org.infinispan.expiration.impl.TouchCommand
All Implemented Interfaces:
DataCommand, FlagAffectedCommand, ReplicableCommand, SegmentSpecificCommand, TopologyAffectedCommand, VisitableCommand

public class TouchCommand extends AbstractDataCommand
This command updates a cache entry's last access timestamp. If eviction is enabled, it will also update the recency information

This command returns a Boolean that is whether this command was able to touch the value or not.

  • Field Details

  • Constructor Details

    • TouchCommand

      public TouchCommand()
    • TouchCommand

      public TouchCommand(Object key, int segment, long flagBitSet, boolean touchEvenIfExpired)
  • Method Details