| 1 | <?php |
||
| 10 | class DoctrineCacheSequenceNumberStore implements SequenceNumberStoreInterface |
||
| 11 | { |
||
| 12 | /** @var \Doctrine\Common\Cache\Cache */ |
||
| 13 | protected $cache; |
||
| 14 | |||
| 15 | 1 | public function __construct(Cache $cacheService) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @param $stream |
||
| 22 | * @param $shard |
||
| 23 | * @param $sequenceNumber |
||
| 24 | */ |
||
| 25 | public function save($stream, $shard, $sequenceNumber) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $stream |
||
| 32 | * @param $shard |
||
| 33 | * @return string|null |
||
| 34 | */ |
||
| 35 | public function fetch($stream, $shard) |
||
| 39 | |||
| 40 | protected function getCacheId($stream, $shard) |
||
| 44 | } |