3 namespace Drupal\memcache\Invalidator;
6 * Interface TimestampInvalidatorInterface.
8 * Defines an interface for timestamp-based tag invalidation.
10 * @package Drupal\memcache\Invalidator
12 interface TimestampInvalidatorInterface {
15 * Invalidate the timestamp of a tag.
21 * New timestamp of tag.
23 public function invalidateTimestamp($tag);
26 * Get the last invalidation timestamp of a tag.
32 * The last invalidation timestamp of the tag.
34 public function getLastInvalidationTimestamp($tag);
37 * Get the last invalidation timestamps of a set of tags.
40 * Array of tags to check (keys are ignored.)
43 * The last invalidation timestamps on file, or FALSE on failure.
45 public function getLastInvalidationTimestamps(array $tags);
48 * Get the current timestamp, optionally offset by a number.
50 * The standard granularity of the resulting timestamp is three decimal
51 * places, (1 millisecond).
53 * @param float $offset
54 * Offset to apply to timestamp before rounding.
57 * Current timestamp in decimal seconds.
59 public function getCurrentTimestamp($offset = 0.0);